enforce using Java 17 when default jvm is another one

This commit is contained in:
Nerjal Nosk 2024-04-06 12:40:54 +02:00
parent 9672e1ffb4
commit 53f71fd02f
No known key found for this signature in database
GPG Key ID: D4DC2157DA6846FF
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,9 @@ combineUnpickDefinitions {
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType(JavaCompile).configureEach {