mirror of https://github.com/FabricMC/yarn.git
enforce using Java 17 when default jvm is another one
This commit is contained in:
parent
9672e1ffb4
commit
53f71fd02f
|
@ -268,6 +268,9 @@ combineUnpickDefinitions {
|
|||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
|
|
Loading…
Reference in New Issue