Skip to content

Commit ccbcc93

Browse files
authored
make sure to always target java 17 (#1008)
1 parent 1bf8350 commit ccbcc93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java-client/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ forbiddenApis {
5656
suppressAnnotations = setOf("co.elastic.clients.util.AllowForbiddenApis")
5757
}
5858

59+
tasks.compileJava {
60+
options.release.set(17)
61+
}
62+
5963
tasks.forbiddenApisMain {
6064
bundledSignatures = setOf("jdk-system-out")
6165
}

0 commit comments

Comments
 (0)