generated from katorlys-samples/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Use Gradle
Katorly edited this page Aug 9, 2024
·
2 revisions
We use Gradle build tool in this template.
To compile and build the JAR file, execute the following command:
./gradlew shadowJarTo clear the build output, execute:
./gradlew cleanNavigate to gradle/wrapper/gradle-wrapper.properties, and update xxx to the latest Gradle version in the line distributionUrl=https\://services.gradle.org/distributions/gradle-xxx-bin.zip.
Navigate to build.gradle.kts and update xxx to the latest Kotlin version in the line kotlin("jvm") version "xxx".
All variables used in build.gradle.kts are defined in gradle.properties and can be easily modified.
-
spigotVersion: All Spigot versions can be found here: https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/ -
pluginApi: The latest major version of Minecraft
-
Minecrell's plugin-yml: Automatically generates the Bukkit
plugin.yml. - johnrengelman's shadow: Packages dependencies into the final plugin JAR.