@@ -2,7 +2,7 @@ plugins {
22 id ' java-library'
33 id ' maven-publish'
44 id ' eclipse'
5- id ' com.github.johnrengelman. shadow' version ' 8.1.1 '
5+ id ' com.gradleup. shadow' version ' 9.0.2 '
66 id ' com.github.ben-manes.versions' version ' 0.51.0'
77 id ' net.minecraftforge.licenser' version ' 1.0.1'
88 id ' net.minecraftforge.gradleutils' version ' [2.3,2.4)'
@@ -47,6 +47,18 @@ tasks.named('jar').configure {
4747tasks. named(' shadowJar' ). configure {
4848 archiveClassifier = ' fatjar'
4949 jarSigner. sign(it)
50+
51+ exclude ' **/Log4j2Plugins.dat'
52+
53+ enableAutoRelocation = true
54+ relocationPrefix = ' net.minecraftforge.installertools.shadow'
55+ // Rewrite JOpt's message files, so that help text is displayed nicely.
56+ transform(com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer ) {
57+ paths = [ ' Messages.properties$' ]
58+ keyTransformer = { key -> ' net.minecraftforge.installertools.shadow.' + key }
59+ }
60+ transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer )
61+ transform(com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer )
5062}
5163
5264artifacts {
@@ -57,8 +69,8 @@ dependencies {
5769 implementation ' net.sf.jopt-simple:jopt-simple:6.0-alpha-3'
5870 implementation ' com.google.code.gson:gson:2.10.1'
5971 implementation ' de.siegmar:fastcsv:2.2.2'
60- implementation ' net.minecraftforge:srgutils:0.5.10 '
61- implementation ' org.ow2.asm:asm-commons:9.7 '
72+ implementation ' net.minecraftforge:srgutils:0.6.2 '
73+ implementation ' org.ow2.asm:asm-commons:9.9.1 '
6274}
6375
6476publishing {
0 commit comments