Skip to content

Commit

Permalink
build: base Java 21, switch to 21+dev-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Nov 1, 2023
1 parent 76cdf21 commit dd4fbfd
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_SNAPSHOT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
java-version: 21
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/latest_jdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
java: [ 19-ea ]
java: [ 21 ]
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
java-version: 21

- name: Cache maven deps
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion fxgl-controllerinput/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-entity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-gameplay/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-scene/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl-zdeploy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion fxgl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>fxgl-framework</artifactId>
<groupId>com.github.almasb</groupId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>
</parent>

<artifactId>fxgl</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class FXGLAssetLoaderService : AssetLoaderService() {
*
* @return parsed object with [type] or Optional.empty() if errors
*/
fun <T> loadJSON(name: String, type: Class<T>): Optional<T> {
fun <T> loadJSON(name: String, type: Class<T>): Optional<T & Any> {
return loadJSON(getURL(ASSETS_DIR + name), type)
}

Expand All @@ -326,7 +326,7 @@ class FXGLAssetLoaderService : AssetLoaderService() {
*
* @return parsed object with [type] or Optional.empty() if errors
*/
fun <T> loadJSON(url: URL, type: Class<T>): Optional<T> {
fun <T> loadJSON(url: URL, type: Class<T>): Optional<T & Any> {
if (url === NULL_URL) {
log.warning("Failed to load JSON: URL is not valid")
return Optional.empty()
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.github.almasb</groupId>
<artifactId>fxgl-framework</artifactId>
<version>17+dev-SNAPSHOT</version>
<version>21+dev-SNAPSHOT</version>

<packaging>pom</packaging>

Expand Down Expand Up @@ -63,15 +63,15 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<source.version>17</source.version>
<source.version>21</source.version>
<fxgl.version>${project.version}</fxgl.version>

<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>dd.MM.yyyy HH.mm</maven.build.timestamp.format>

<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<kotlin.compiler.jvmTarget>11</kotlin.compiler.jvmTarget>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<kotlin.compiler.jvmTarget>21</kotlin.compiler.jvmTarget>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>

<!-- plugins -->
Expand All @@ -90,7 +90,7 @@

<!-- dependencies -->
<jfx.version>20</jfx.version>
<kotlin.version>1.8.10</kotlin.version>
<kotlin.version>1.9.20</kotlin.version>
<attach.version>4.0.17</attach.version>
<jackson.version>2.14.2</jackson.version>

Expand Down

0 comments on commit dd4fbfd

Please sign in to comment.