Skip to content

Commit 9985a5c

Browse files
Ensure jdk21 and 17 compatibility (#81)
1 parent b8dfd79 commit 9985a5c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.cirrus.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def build_task():
3535
"env": gradle_base_env() | gradle_develocity_env() | {
3636
"CIRRUS_CLONE_DEPTH": 10,
3737
},
38-
"eks_container": base_image_container_builder(cpu=1, memory="4G"),
38+
"eks_container": base_image_container_builder(cpu=1, memory="4G", image="${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j21-latest"),
3939
"gradle_cache": gradle_cache(),
4040
"gradle_wrapper_cache": gradle_wrapper_cache(),
4141
"build_script": [

gradle-modules/src/main/kotlin/org.sonarsource.cloud-native.java-conventions.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ java {
3232

3333
tasks.withType<JavaCompile> {
3434
options.encoding = "UTF-8"
35+
options.release.set(17)
3536
}
3637

3738
tasks.withType<Javadoc> {

0 commit comments

Comments
 (0)