mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 21:33:52 -07:00
Work
This commit is contained in:
@@ -87,28 +87,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+publishing {
|
||||
+ publications.create<MavenPublication>("maven") {
|
||||
+ artifact(tasks.shadowJar)
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+relocation {
|
||||
+ // Order matters here - e.g. craftbukkit proper must be relocated before any of the libs are relocated into the cb package
|
||||
+ relocate("org.bukkit.craftbukkit" to "org.bukkit.craftbukkit.v$craftbukkitPackageVersion") {
|
||||
+ exclude("org.bukkit.craftbukkit.Main*")
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+tasks.shadowJar {
|
||||
+ configurations = listOf(project.configurations.vanillaServer.get())
|
||||
+ archiveClassifier.set("mojang-mapped")
|
||||
+
|
||||
+ for (relocation in relocation.relocations.get()) {
|
||||
+ relocate(relocation.fromPackage, relocation.toPackage) {
|
||||
+ for (exclude in relocation.excludes) {
|
||||
+ exclude(exclude)
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+tasks.test {
|
||||
|
Reference in New Issue
Block a user