diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index daea316a0..344d760d7 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -26,7 +26,7 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: Build with Gradle - run: ./gradlew clean build + run: ./gradlew clean shadowJar - name: Stage jar run: mkdir staging && cp modules/Movecraft/build/libs/Movecraft.jar staging && mv staging/Movecraft.jar staging/Movecraft_$GITHUB_SHA.jar diff --git a/README.md b/README.md index 34464913b..f55770dd6 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Please check the [Wiki](https://github.com/APDevTeam/Movecraft/wiki) and [FAQ](h ## Development Environment Building Movecraft is as easy as downloading the source code and executing the following command: ``` -./gradlew clean build +./gradlew clean shadowJar ``` Compiled jars can be found in the `modules/Movecraft/build/libs` directory. diff --git a/modules/Movecraft/build.gradle.kts b/modules/Movecraft/build.gradle.kts index 85c5909b4..e4af21af2 100644 --- a/modules/Movecraft/build.gradle.kts +++ b/modules/Movecraft/build.gradle.kts @@ -28,6 +28,7 @@ tasks.shadowJar { archiveVersion.set("") dependencies { + include(project(":movecraft-api")) include(project(":movecraft-v1_18")) include(project(":movecraft-v1_20")) include(project(":movecraft-datapack")) @@ -36,12 +37,6 @@ tasks.shadowJar { relocate("it.unimi", "net.countercraft.movecraft.libs.it.unimi") relocate("net.kyori", "net.countercraft.movecraft.libs.net.kyori") relocate("org.roaringbitmap", "net.countercraft.movecraft.libs.org.roaringbitmap") - - minimize() -} - -tasks.build { - dependsOn(tasks.shadowJar) } description = "Movecraft"