Only exclude transitives for our tiny-remapper dep
This commit is contained in:
parent
0b9e07345f
commit
e54e9fce13
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue