From 613650e480a4f5e339633618730fdc23ff03b236 Mon Sep 17 00:00:00 2001 From: Alvin Dimas Praditya Date: Mon, 19 Aug 2024 20:18:41 +0700 Subject: [PATCH] build one jar only --- .github/workflows/gradle-build.yml | 10 +--------- build.gradle.kts | 23 +++-------------------- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 0a85c6e..e1d0e6e 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -26,16 +26,8 @@ jobs: settings-path: ${{ github.workspace }} - name: Setup Gradle uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 - - - name: Build with Gradle Legacy - run: MC_VERSION=legacy ./gradlew build - - name: Build with Gradle 1.20.4 - run: MC_VERSION=1.20.4 ./gradlew build - - name: Build with Gradle 1.20.6 - run: MC_VERSION=1.20.6 ./gradlew build - - name: Build with Gradle Latest + - name: Build with Gradle run: ./gradlew build - - name: Upload artifacts uses: actions/upload-artifact@v4 with: diff --git a/build.gradle.kts b/build.gradle.kts index 281da63..4ed0554 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,3 @@ -import kotlin.properties.Delegates plugins { id("java") @@ -14,29 +13,13 @@ repositories { } -lateinit var minecraftVersion: String -var javaVersion by Delegates.notNull() -lateinit var versionName: String - -task("env") { - minecraftVersion = System.getenv("MC_VERSION") ?: "1.21.1" - javaVersion = 21 - versionName = minecraftVersion - - if (minecraftVersion == "legacy"){ - minecraftVersion = "1.20.3" - javaVersion = 21 - versionName = "legacy" - } -} - group = "org.alvindimas05.lagassist" -version = "2.32-$versionName" +version = "2.32" description = "LagAssist" java { toolchain { - languageVersion.set(JavaLanguageVersion.of(javaVersion)) + languageVersion.set(JavaLanguageVersion.of(21)) } } @@ -44,7 +27,7 @@ java { dependencies { // paperweight.paperDevBundle("$minecraftVersion-R0.1-SNAPSHOT") - compileOnly("io.papermc.paper:paper-api:$minecraftVersion-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT") compileOnly("net.milkbowl.vault:VaultAPI:1.7") implementation("com.google.code.gson:gson:2.11.0")