[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:
@@ -408,8 +408,11 @@ task shadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// No need to shadow netty, MC provides it
|
// No need to shadow netty, MC provides it
|
||||||
|
// (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'
|
relocate 'com.github.steveice10.netty', 'io.netty'
|
||||||
exclude 'com/github/steveice10/netty/**'
|
exclude 'com/github/steveice10/netty/**'
|
||||||
|
}
|
||||||
|
|
||||||
minimize {
|
minimize {
|
||||||
exclude(dependency('.*spongepowered:mixin:.*'))
|
exclude(dependency('.*spongepowered:mixin:.*'))
|
||||||
|
|||||||
Reference in New Issue
Block a user