File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,19 @@ dependencies {
2626 implementation(project(" :api:incubator" ))
2727}
2828
29- // org.graalvm.buildtools.native plugin requires java 11 + as of version 0.9.26
29+ // org.graalvm.buildtools.native plugin requires java 17 + as of version 0.11.1
3030// https://github.com/graalvm/native-build-tools/blob/master/docs/src/docs/asciidoc/index.adoc
31+ tasks {
32+ withType<JavaCompile >().configureEach {
33+ sourceCompatibility = " 17"
34+ targetCompatibility = " 17"
35+ options.release.set(17 )
36+ }
37+ withType<Test >().configureEach {
38+ val testJavaVersion: String? by project
39+ enabled = ! testJavaVersion.equals(" 8" )
40+ }
41+ }
3142
3243graalvmNative {
3344 binaries {
Original file line number Diff line number Diff line change @@ -24,8 +24,19 @@ dependencies {
2424 implementation(project(" :exporters:otlp:all" ))
2525}
2626
27- // org.graalvm.buildtools.native plugin requires java 11 + as of version 0.9.26
27+ // org.graalvm.buildtools.native plugin requires java 17 + as of version 0.11.1
2828// https://github.com/graalvm/native-build-tools/blob/master/docs/src/docs/asciidoc/index.adoc
29+ tasks {
30+ withType<JavaCompile >().configureEach {
31+ sourceCompatibility = " 17"
32+ targetCompatibility = " 17"
33+ options.release.set(17 )
34+ }
35+ withType<Test >().configureEach {
36+ val testJavaVersion: String? by project
37+ enabled = ! testJavaVersion.equals(" 8" )
38+ }
39+ }
2940
3041graalvmNative {
3142 binaries {
You can’t perform that action at this time.
0 commit comments