Skip to content

Commit 328a529

Browse files
committed
Migrate to jar-transformer
1 parent e13eef9 commit 328a529

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

Agent/build.gradle

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id "java"
33
id "base.base-conventions"
44
id "base.application-conventions"
5-
id "net.lenni0451.repackager" version "1.0.2"
5+
id "net.lenni0451.jar-transformer" version "1.1.0"
66
}
77

88
dependencies {
@@ -21,10 +21,19 @@ jar {
2121
}
2222
}
2323

24-
repackager {
25-
jarFile = jar.archiveFile
26-
relocations = [
27-
"org.objectweb": "net.lenni0451.authhook.libs.org.objectweb"
28-
]
29-
removeEmptyDirs = true
24+
jarTransformer {
25+
jar {
26+
inputFile = jar.archiveFile
27+
exclude {
28+
excludes = [
29+
"module-info.class"
30+
]
31+
}
32+
repackage {
33+
relocations = [
34+
"org.objectweb": "net.lenni0451.authhook.libs.org.objectweb"
35+
]
36+
removeEmptyDirs = true
37+
}
38+
}
3039
}

0 commit comments

Comments
 (0)