diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3ecabc..63c7be8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Set up JDK 21 + - name: Set up JDK 25 uses: actions/setup-java@v6 with: - java-version: "21" + java-version: "25" distribution: temurin cache: maven diff --git a/README.md b/README.md index 50783b2..0009f5c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A JavaFX desktop game where a robot hunts for treasure on a grid. You can play m ## Requirements -- **JDK 21** (LTS) +- **JDK 25** (LTS) - **Maven 3.9+** (for builds) - A display for the JavaFX UI (desktop environment) @@ -38,7 +38,7 @@ Or after packaging: ```bash mvn -B package -java --module-path "$HOME/.m2/repository/org/openjfx/javafx-controls/21.0.6/javafx-controls-21.0.6.jar:$(dirname $(find ~/.m2/repository/org/openjfx -name 'javafx-graphics*.jar' | head -1))" --add-modules javafx.controls,javafx.graphics -cp target/randobotjava-1.0.0-SNAPSHOT.jar sample.Main +java --module-path "$HOME/.m2/repository/org/openjfx/javafx-controls/27.0.1/javafx-controls-27.0.1.jar:$(dirname $(find ~/.m2/repository/org/openjfx -name 'javafx-graphics*.jar' | head -1))" --add-modules javafx.controls,javafx.graphics -cp target/randobotjava-1.0.0-SNAPSHOT.jar sample.Main ``` Using the Maven JavaFX plugin (`mvn javafx:run`) is the simplest option. @@ -57,7 +57,7 @@ mvn spotless:apply # auto-format ## Project structure ``` -├── pom.xml # Maven build (Java 21, JavaFX, JUnit 6) +├── pom.xml # Maven build (Java 25, JavaFX, JUnit 6) ├── src/main/java/sample/ │ ├── Main.java # JavaFX application entry │ ├── Game.java # Game rules and turns diff --git a/pom.xml b/pom.xml index a6cb259..d587ba8 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,8 @@ UTF-8 - 21 - 21.0.6 + 25 + 27.0.1 6.1.3 @@ -59,7 +59,7 @@ - 1.23.0 + 1.30.0