Shorten the actual KSpigot setup guide by outsourcing common requirements

This commit is contained in:
Jakob K
2021-07-03 21:37:06 +02:00
parent 44b4b6fd59
commit 1749b8b5a2
5 changed files with 78 additions and 65 deletions

View File

@@ -0,0 +1,19 @@
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 16** 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 16 is the minimum required version for Minecraft
tasks.compileJava {
options.release.set(16)
}
tasks.compileKotlin {
kotlinOptions.jvmTarget = "16"
}
```