Use the preferred task syntax

This commit is contained in:
Jakob K
2021-07-13 16:36:37 +02:00
committed by GitHub
parent f9a5429e48
commit 9bb579e02c

View File

@@ -9,11 +9,12 @@ You can configure the Java version using Gradle:
```kotlin
// set the Java version you are using, Java 16 is the minimum required version for Minecraft
tasks.compileJava {
tasks {
compileJava {
options.release.set(16)
}
tasks.compileKotlin {
}
compileKotlin {
kotlinOptions.jvmTarget = "16"
}
}
```