Only exclude transitives for our tiny-remapper dep

This commit is contained in:
Jason Penilla 2024-04-27 20:11:24 -07:00
parent 0b9e07345f
commit e54e9fce13
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -243,10 +243,17 @@ abstract class PaperweightUser : Plugin<Project> {
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
}
}
)
}
}
}