Skip to content

Commit

Permalink
Merge pull request #282 from mqtze/fix/guava
Browse files Browse the repository at this point in the history
Revert "added google guava"
  • Loading branch information
onixiya1337 authored Jan 23, 2025
2 parents 250d048 + 449a12e commit 2deadc0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ dependencies {

compileOnly("cc.polyfrost:oneconfig-1.8.9-forge:0.2.1-alpha+")
shadowImpl("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+")
shadowImpl("com.google.guava:guava:23.0")

compileOnly("org.spongepowered:mixin:0.8.5")
annotationProcessor("org.spongepowered:mixin:0.8.5")
Expand Down Expand Up @@ -151,17 +150,15 @@ tasks.shadowJar {
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
archiveClassifier.set("all-dev")
configurations = listOf(shadowImpl)

relocate("com.google.common", "$baseGroup.deps.google.common")

doLast {
configurations.forEach {
println("Copying jars into mod: ${it.files}")
}
}

// Keep your helper function
// If you want to include other dependencies and shadow them, you can relocate them in here
fun relocate(name: String) = relocate(name, "$baseGroup.deps.$name")
}

tasks.assemble.get().dependsOn(tasks.remapJar)

0 comments on commit 2deadc0

Please sign in to comment.