Make gradle compatible with Java 17

This commit is contained in:
Ran
2021-12-22 13:53:34 +06:00
parent 55aadb73f1
commit 1b3e90b669
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -39,7 +39,7 @@ subprojects { p ->
}
}
allprojects {
allprojects { p ->
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
@@ -55,8 +55,10 @@ allprojects {
}
tasks.withType(JavaCompile) {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
options.release = 17
if (p != project(":core")) {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
options.release = 17
}
}
java {
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists