Skip to content

Commit 5f1522b

Browse files
committed
Move on to Java 21
Signed-off-by: Alexander Brandes <mc.cache@web.de>
1 parent 6cd53e7 commit 5f1522b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/setup-java@v5
1414
with:
1515
distribution: temurin
16-
java-version: 17
16+
java-version: 21
1717
- name: Clean Build
1818
run: ./gradlew clean build
1919
- name: Archive Artifacts

.github/workflows/upload-release-asset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
distribution: temurin
1717
cache: gradle
18-
java-version: 17
18+
java-version: 21
1919
- name: Clean Build
2020
run: ./gradlew clean build
2121
- name: Upload Release Assets

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ plugins {
1010
}
1111

1212
the<JavaPluginExtension>().toolchain {
13-
languageVersion.set(JavaLanguageVersion.of(17))
13+
languageVersion.set(JavaLanguageVersion.of(21))
1414
}
1515

1616
configurations.all {
17-
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
17+
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
1818
}
1919

2020
tasks.compileJava.configure {
21-
options.release.set(17)
21+
options.release.set(21)
2222
}
2323

2424
version = "7.0.1-SNAPSHOT"

0 commit comments

Comments
 (0)