Skip to content

Commit 8d0947c

Browse files
committed
Migrate to jar-transformer
1 parent e826d24 commit 8d0947c

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

build.gradle

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "viaproxy.plugin-conventions"
3-
id "net.lenni0451.repackager" version "1.0.2"
3+
id "net.lenni0451.jar-transformer" version "1.1.0"
44
}
55

66
configurations {
@@ -30,20 +30,26 @@ dependencies {
3030
}
3131
}
3232

33-
dependencyRepackager {
34-
configuration = configurations.repackagedIncludeInJar
35-
relocations = [
36-
"org.apache.commons" : "com.github.dirtpowered.betatorelease.libs.org.apache.commons",
37-
"net.lenni0451.mcstructs": "com.github.dirtpowered.betatorelease.libs.net.lenni0451.mcstructs",
38-
"com.google" : "com.github.dirtpowered.betatorelease.libs.com.google"
39-
]
40-
removals = [
41-
"org/apache/logging/log4j",
42-
"io/netty",
43-
"META-INF/org/apache/logging/log4j",
44-
"META-INF/versions/9/org/apache/logging/log4j",
45-
"META-INF/services/org.apache.logging.log4j",
46-
"log4j"
47-
]
48-
removeEmptyDirs = true
33+
jarTransformer {
34+
dependency {
35+
configuration = configurations.repackagedIncludeInJar
36+
exclude {
37+
excludes = [
38+
"org/apache/logging/log4j",
39+
"io/netty",
40+
"META-INF/org/apache/logging/log4j",
41+
"META-INF/versions/9/org/apache/logging/log4j",
42+
"META-INF/services/org.apache.logging.log4j",
43+
"log4j"
44+
]
45+
}
46+
repackage {
47+
relocations = [
48+
"org.apache.commons" : "com.github.dirtpowered.betatorelease.libs.org.apache.commons",
49+
"net.lenni0451.mcstructs": "com.github.dirtpowered.betatorelease.libs.net.lenni0451.mcstructs",
50+
"com.google" : "com.github.dirtpowered.betatorelease.libs.com.google"
51+
]
52+
removeEmptyDirs = true
53+
}
54+
}
4955
}

0 commit comments

Comments
 (0)