Skip to content

Use Gradle

Katorly edited this page Aug 9, 2024 · 2 revisions

We use Gradle build tool in this template.

Build

To compile and build the JAR file, execute the following command:

./gradlew shadowJar

To clear the build output, execute:

./gradlew clean

Update

Gradle

Navigate 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.

Kotlin

Navigate to build.gradle.kts and update xxx to the latest Kotlin version in the line kotlin("jvm") version "xxx".

Modify properties

All variables used in build.gradle.kts are defined in gradle.properties and can be easily modified.

Use plugins

Clone this wiki locally