|
1 | 1 | plugins { |
2 | 2 | id "viaproxy.plugin-conventions" |
3 | | - id "net.lenni0451.repackager" version "1.0.2" |
| 3 | + id "net.lenni0451.jar-transformer" version "1.1.0" |
4 | 4 | } |
5 | 5 |
|
6 | 6 | configurations { |
@@ -30,20 +30,26 @@ dependencies { |
30 | 30 | } |
31 | 31 | } |
32 | 32 |
|
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 | + } |
49 | 55 | } |
0 commit comments