From 02380b2f27c36ef85dfba2bb7e28c080a5110251 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 2 Jul 2013 13:07:39 +1000 Subject: [PATCH] POM Changes Basic changes to the build system which mark the artifact as Spigot, and the necessary code changes to ensure proper functionality. Also disables the auto updater provided by CraftBukkit as it is useless to us. By: md_5 --- paper-server/checkstyle.xml | 10 +++++ paper-server/pom.xml | 40 ++++++++++++++----- .../bukkit/craftbukkit/util/Versioning.java | 2 +- 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/paper-server/checkstyle.xml b/paper-server/checkstyle.xml index 12feab88bc..3150fd744e 100644 --- a/paper-server/checkstyle.xml +++ b/paper-server/checkstyle.xml @@ -34,6 +34,9 @@ + + + @@ -55,6 +58,13 @@ + + + + + + + diff --git a/paper-server/pom.xml b/paper-server/pom.xml index 9ac9a7581a..8fdbc360f0 100644 --- a/paper-server/pom.xml +++ b/paper-server/pom.xml @@ -1,13 +1,20 @@ 4.0.0 - org.bukkit - craftbukkit + org.spigotmc + spigot jar 1.21.4-R0.1-SNAPSHOT - CraftBukkit + Spigot https://www.spigotmc.org/ + + org.spigotmc + spigot-parent + dev-SNAPSHOT + ../pom.xml + + true AllFeatures,Bundle,Legacy,Normal,VanillaFeature @@ -28,8 +35,8 @@ - org.bukkit - bukkit + org.spigotmc + spigot-api ${project.version} compile @@ -387,11 +394,26 @@ net.md-5 scriptus 0.5.0 - - ${bt.name}-Bukkit-%s - + ex-spigot + + ${bt.name}-Spigot-%s + ../ + spigot.desc + + initialize + + describe + + + + ex-craftbukkit + + -%s + ../../CraftBukkit + craftbukkit.desc + initialize describe @@ -424,7 +446,7 @@ org.bukkit.craftbukkit.Main CraftBukkit - ${describe} + ${spigot.desc}${craftbukkit.desc} ${project.build.outputTimestamp} Bukkit ${api.version} diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/Versioning.java index f905d17b6b..93046379d0 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/Versioning.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/Versioning.java @@ -11,7 +11,7 @@ public final class Versioning { public static String getBukkitVersion() { String result = "Unknown-Version"; - InputStream stream = Bukkit.class.getClassLoader().getResourceAsStream("META-INF/maven/org.bukkit/bukkit/pom.properties"); + InputStream stream = Bukkit.class.getClassLoader().getResourceAsStream("META-INF/maven/org.spigotmc/spigot-api/pom.properties"); Properties properties = new Properties(); if (stream != null) {