From e54e9fce130e16cab2a94c74903de71b9cd42791 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 27 Apr 2024 20:11:24 -0700 Subject: [PATCH] Only exclude transitives for our tiny-remapper dep --- .../io/papermc/paperweight/userdev/PaperweightUser.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt index 5dfc13c..1b9418e 100644 --- a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt +++ b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt @@ -243,10 +243,17 @@ abstract class PaperweightUser : Plugin { fun makeRemapperConfig(name: String) { target.configurations.register(name) { - isTransitive = false // we use a fat jar for tiny-remapper, so we don't need it's transitive deps defaultDependencies { for (dep in userdevSetup.get().remapper.coordinates) { - add(target.dependencies.create(dep)) + // we use a fat jar for tiny-remapper, so we don't need its transitive deps + val fatTiny = dep.contains(":tiny-remapper:") && dep.endsWith(":fat") + add( + target.dependencies.create(dep) { + if (fatTiny) { + isTransitive = false + } + } + ) } } }