aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-08 15:38:16 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-08 15:38:16 +0100
commitf578d67bf9f8229050a9d5ada52ef3f38b92550c (patch)
tree116aa9d591371fb35359a5d143614516b53633a5
parent1a923ff1fda799906cc56c7a8a767053558db95c (diff)
downloadLocalTransactionLedger-f578d67bf9f8229050a9d5ada52ef3f38b92550c.tar.gz
LocalTransactionLedger-f578d67bf9f8229050a9d5ada52ef3f38b92550c.tar.bz2
LocalTransactionLedger-f578d67bf9f8229050a9d5ada52ef3f38b92550c.zip
fix: Exclude some unneeded dependencies
-rw-r--r--build-src/src/main/kotlin/ledger-globals.gradle.kts11
-rw-r--r--build.gradle.kts20
2 files changed, 19 insertions, 12 deletions
diff --git a/build-src/src/main/kotlin/ledger-globals.gradle.kts b/build-src/src/main/kotlin/ledger-globals.gradle.kts
index 5eb8004..0d1c3c4 100644
--- a/build-src/src/main/kotlin/ledger-globals.gradle.kts
+++ b/build-src/src/main/kotlin/ledger-globals.gradle.kts
@@ -1,6 +1,15 @@
import org.gradle.api.tasks.bundling.AbstractArchiveTask
+repositories {
+ mavenCentral()
+ maven("https://repo.nea.moe/releases/")
+ maven("https://repo.spongepowered.org/maven/")
+ maven("https://maven.notenoughupdates.org/releases")
+ maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
+}
+
tasks.withType<AbstractArchiveTask> {
this.isPreserveFileTimestamps = false
this.isReproducibleFileOrder = true
-} \ No newline at end of file
+}
+
diff --git a/build.gradle.kts b/build.gradle.kts
index a6ee08c..4559556 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -83,16 +83,6 @@ loom {
}
}
-allprojects {
- repositories {
- mavenCentral()
- maven("https://repo.nea.moe/releases/")
- maven("https://repo.spongepowered.org/maven/")
- maven("https://maven.notenoughupdates.org/releases")
- maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
- }
-}
-
// TODO: Add an extra shadow configuration for optimizable jars
//val optShadowImpl: Configuration by configurations.creating {
//
@@ -120,7 +110,9 @@ dependencies {
shadowImpl("io.azam.ulidj:ulidj:1.0.4")
shadowImpl(project(":dependency-injection"))
shadowImpl(project(":database:core"))
- shadowImpl("moe.nea:libautoupdate:1.3.1")
+ shadowImpl("moe.nea:libautoupdate:1.3.1") {
+ exclude(module = "gson")
+ }
runtimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.2.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
}
@@ -203,13 +195,19 @@ val shadowJar2 = tasks.register("shadowJar2", ShadowJar::class) {
dependsOn(proguard)
configurations = listOf(shadowImpl)
relocate("moe.nea.libautoupdate", "moe.nea.ledger.deps.libautoupdate")
+ relocate("io.github.notenoughupdates.moulconfig", "moe.nea.ledger.deps.moulconfig")
+ relocate("io.azam.ulidj", "moe.nea.ledger.deps.ulid")
mergeServiceFiles()
exclude(
+ // Signatures
"META-INF/INDEX.LIST",
"META-INF/*.SF",
"META-INF/*.DSA",
"META-INF/*.RSA",
"module-info.class",
+
+ "META-INF/*.kotlin_module",
+ "META-INF/versions/**"
)
}
val remapJar by tasks.named<net.fabricmc.loom.task.RemapJarTask>("remapJar") {