Slackbot
04/23/2023, 4:31 PMVampire
04/23/2023, 9:34 PMjava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_11
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}Thomas Broyer
04/24/2023, 5:55 AM--release though:
tasks {
compileJava {
options.release.set(8)
}
}
See http://developer-blog.cloudbees.com/2014/12/beware-siren-target-call.html and http://www.draconianoverlord.com/2014/04/01/jdk-compatibility.htmlMatan Sabag
04/24/2023, 6:01 AM> The new Java toolchain feature cannot be used at the project level in combination with source and/or target compatibility
Matan Sabag
04/24/2023, 6:04 AMMatan Sabag
04/24/2023, 6:14 AMVampire
04/24/2023, 6:42 AM