Skip to content

Commit 08af4ee

Browse files
committed
build: Gradle 9 requires JVM 17 — target Java 11 via release flag
1 parent 04f9b3d commit 08af4ee

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
java: ["11", "17", "21"]
11+
java: ["17", "21"]
1212
steps:
1313
- uses: actions/checkout@v4
1414

@@ -40,7 +40,6 @@ jobs:
4040
}
4141
}
4242
JAVA
43-
gradle jar --no-daemon
4443
GSON=$(find ~/.gradle -name "gson-2.11.0.jar" | head -1)
4544
javac -cp "build/libs/zerodrop-java-0.1.0.jar:$GSON" SmokeTest.java
4645
java -cp "build/libs/zerodrop-java-0.1.0.jar:$GSON:." SmokeTest

‎build.gradle‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ group = 'dev.zerodrop'
77
version = '0.1.0'
88

99
java {
10-
toolchain {
11-
languageVersion = JavaLanguageVersion.of(11)
12-
}
1310
withSourcesJar()
1411
withJavadocJar()
1512
}
1613

14+
compileJava {
15+
options.release = 11
16+
}
17+
1718
repositories {
1819
mavenCentral()
1920
}

‎jitpack.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
jdk:
2-
- openjdk11
2+
- openjdk17

0 commit comments

Comments
 (0)