Skip to content

Commit 7b72fb5

Browse files
committed
Explicitly set the java toolchain and release version
1 parent 5b96278 commit 7b72fb5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up JDK
1818
uses: actions/setup-java@v5
1919
with:
20-
java-version: '17'
20+
java-version: '25'
2121
distribution: 'corretto'
2222

2323
- name: Setup Gradle

buildSrc/src/main/kotlin/api-models-aws.model-conventions.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ sourceSets {
4343
}
4444
}
4545

46+
java {
47+
toolchain {
48+
languageVersion.set(JavaLanguageVersion.of(25))
49+
}
50+
}
51+
52+
tasks.withType<JavaCompile> {
53+
options.release.set(8)
54+
}
55+
4656
tasks {
4757
build {
4858
mustRunAfter(clean)

0 commit comments

Comments
 (0)