Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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.
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>21</maven.compiler.release>
<javafx.version>21.0.6</javafx.version>
<maven.compiler.release>25</maven.compiler.release>
<javafx.version>27.0.1</javafx.version>
<junit.version>6.1.3</junit.version>
</properties>

Expand Down Expand Up @@ -59,7 +59,7 @@
<configuration>
<java>
<googleJavaFormat>
<version>1.23.0</version>
<version>1.30.0</version>
<style>AOSP</style>
</googleJavaFormat>
<removeUnusedImports/>
Expand Down
Loading