Skip to content

Commit

Permalink
build one jar only
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Aug 19, 2024
1 parent 3960fbb commit 613650e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
23 changes: 3 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import kotlin.properties.Delegates

plugins {
id("java")
Expand All @@ -14,37 +13,21 @@ repositories {
}


lateinit var minecraftVersion: String
var javaVersion by Delegates.notNull<Int>()
lateinit var versionName: String

task<Exec>("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))
}
}


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")
Expand Down

0 comments on commit 613650e

Please sign in to comment.