
* Use new papermc repo url * Update gradle plugins * Update paper dependencies to 1.19 and bump version * Package renames * Update to kotlin 1.7.0 * Update kotlinx-serialization-json to 1.3.3 * Update kotlinx-coroutines to 1.6.2 * Correct version bump * Update versions in gradle_example.md * update some guide stuff Co-authored-by: l4zs <business@l4zs.de>
21 lines
631 B
Markdown
21 lines
631 B
Markdown
Configuring the Java version is nothing specific to KSpigot, it should always be done. It is listed in this guide
|
|
anyways, because a lot of beginners forget to do this - and then get confused about not being able to use inline
|
|
functions.
|
|
|
|
**Java 17** is the minimum required Java version by Minecraft, therefore KSpigot requires it as well.
|
|
|
|
You can configure the Java version using Gradle:
|
|
|
|
```kotlin
|
|
// set the Java version you are using, Java 17 is the minimum required version for Minecraft
|
|
|
|
tasks {
|
|
compileJava {
|
|
options.release.set(17)
|
|
}
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
}
|
|
```
|