Skip to content

Commit c6d7fda

Browse files
committed
Use repackager instead of shadow
1 parent 5ab7f4c commit c6d7fda

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Agent/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("com.gradleup.shadow") version "9.0.0-beta11"
2+
id("net.lenni0451.repackager") version "1.0.0"
33
}
44

55
base {
@@ -12,8 +12,6 @@ dependencies {
1212
}
1313

1414
jar {
15-
enabled = false
16-
dependsOn(shadowJar)
1715
manifest {
1816
attributes(
1917
"Multi-Release": "true",
@@ -25,7 +23,10 @@ jar {
2523
}
2624
}
2725

28-
shadowJar {
29-
relocate "org.objectweb", "net.lenni0451.authhook.libs.org.objectweb"
30-
archiveClassifier = ""
26+
repackager {
27+
jarFile = jar.archiveFile
28+
relocations = [
29+
"org.objectweb": "net.lenni0451.authhook.libs.org.objectweb"
30+
]
31+
removeEmptyDirs = true
3132
}

0 commit comments

Comments
 (0)