Skip to content

Commit

Permalink
feat: JDK 23 general availability - apply to build
Browse files Browse the repository at this point in the history
  • Loading branch information
briancorbinxyz committed Sep 23, 2024
1 parent 61340af commit 1d2923a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 22
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '22'
java-version: '23'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-java@v4
with:
# https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions
java-version: '22'
java-version: '23'
distribution: 'temurin'

# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
uses: actions/setup-java@v4
with:
# https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions
java-version: '22'
java-version: '24'
distribution: 'temurin'

# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ The following algorithms are used by the AI BOT in this project - for a detailed

- To run the single game application, use the following command: `./gradlew run`

- If you don't have Java 23 installed on your system you can install it first with [SDKMAN](https://sdkman.io/):

```bash
curl -s "https://get.sdkman.io" | bash

sdk install java 23-tem

./gradlew run
```

---

### Related
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/org/xxdc/oss/example/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public sealed interface Player permits HumanPlayer, BotPlayer {

/// Chooses the next valid move on the game board.
/// @param board the current state of the game
/// @param gameState the current state of the game
/// @return the index of the next valid move on the board
int nextMove(GameState gameState);
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ testing {

val projectVersion by extra("1.3.1")

public val jdkVersion = 22
public val jdkVersion = 23
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
Expand Down

0 comments on commit 1d2923a

Please sign in to comment.