Fix fastutil being relocated in 1.14+ (fixes #248)
This commit is contained in:
@@ -382,6 +382,8 @@ task configureRelocation() {
|
||||
} else if (!pkg.startsWith('org/spongepowered')) {
|
||||
pkgs << pkg.substring(0, pkg.indexOf('/', 4))
|
||||
}
|
||||
} else if (pkg.startsWith('it/unimi/dsi/fastutil') && mcVersion >= 11400) {
|
||||
return // MC uses this as well
|
||||
} else if (!pkg.startsWith('javax/')) {
|
||||
// Note: we cannot just use top level packages as those will be too generic and we'll run
|
||||
// into this long standing bug: https://github.com/johnrengelman/shadow/issues/232
|
||||
@@ -437,6 +439,11 @@ task shadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar)
|
||||
exclude 'com/github/steveice10/netty/**'
|
||||
}
|
||||
|
||||
if (mcVersion >= 11400) {
|
||||
// MC ships this
|
||||
exclude 'it/unimi/dsi/fastutil/**'
|
||||
}
|
||||
|
||||
minimize {
|
||||
exclude(dependency('.*spongepowered:mixin:.*'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user