[Pre-1.12] Include less-outdated netty library for ReplayStudio

On 1.12+ MC's bundled version is sufficiently up-to-date but before that it
didn't have e.g. `ByteBuf.retainedSlice`.
This commit is contained in:
Jonas Herzig
2020-04-21 23:08:04 +02:00
parent 05f617a885
commit 3d71f7c526

View File

@@ -408,8 +408,11 @@ task shadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar)
}
// No need to shadow netty, MC provides it
relocate 'com.github.steveice10.netty', 'io.netty'
exclude 'com/github/steveice10/netty/**'
// (actually, pre-1.12 ships a netty which is too old, so we need to shade it there anyway)
if (mcVersion >= 11200) {
relocate 'com.github.steveice10.netty', 'io.netty'
exclude 'com/github/steveice10/netty/**'
}
minimize {
exclude(dependency('.*spongepowered:mixin:.*'))