We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe56fd commit 0bf28a2Copy full SHA for 0bf28a2
build.gradle
@@ -1,4 +1,5 @@
1
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2
+import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
3
4
plugins {
5
id 'java-library'
@@ -82,6 +83,12 @@ tasks.named('shadowJar', ShadowJar).configure {
82
83
relocations.each {
84
relocate it, "net.minecraftforge.fart.relocated.$it"
85
}
86
+
87
+ // Rewrite JOpt's message files, so that help text is displayed nicely.
88
+ transform(PropertiesFileTransformer) {
89
+ paths = [ 'Messages.properties$' ]
90
+ keyTransformer = { key -> "net.minecraftforge.fart.relocated.$key".toString() }
91
+ }
92
93
94
tasks.named('assemble').configure {
0 commit comments