2023-12-08 07:00:00 +11:00
From fbfcfd708cee8d65e44a89ee9e90b027de55f768 Mon Sep 17 00:00:00 2001
2013-02-03 09:38:54 +11:00
From: md_5 <md_5@live.com.au>
2013-07-02 13:14:40 +10:00
Date: Tue, 2 Jul 2013 13:07:39 +1000
2013-04-23 11:35:18 +10:00
Subject: [PATCH] POM Changes
2013-02-03 09:38:54 +11:00
2014-07-05 20:34:22 +10:00
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.
2013-02-03 09:38:54 +11:00
2021-01-31 10:08:46 +11:00
diff --git a/checkstyle.xml b/checkstyle.xml
2023-10-15 11:02:21 +11:00
index 63914723e1..01319e4f75 100644
2021-01-31 10:08:46 +11:00
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -25,6 +25,9 @@
<property name="checks" value="UnusedImports"/>
2021-02-08 21:11:04 +11:00
<property name="files" value=".*[/\\]net[/\\]minecraft[/\\]server[/\\].*"/>
2021-01-31 10:08:46 +11:00
</module>
+ <module name="SuppressionSingleFilter">
+ <property name="checks" value="LeftCurly|ParenPad"/>
+ </module>
<module name="TreeWalker">
<!-- See https://checkstyle.org/config_javadoc.html -->
@@ -46,6 +49,13 @@
<module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="CraftBukkit"/>
</module>
+ <module name="SuppressionCommentFilter">
+ <property name="offCommentFormat" value="Spigot start"/>
+ <property name="onCommentFormat" value="Spigot end"/>
+ </module>
+ <module name="SuppressWithNearbyCommentFilter">
+ <property name="commentFormat" value="Spigot"/>
+ </module>
<!-- See http://checkstyle.sourceforge.net/config_imports.html -->
<module name="AvoidStarImport">
2013-02-03 09:38:54 +11:00
diff --git a/pom.xml b/pom.xml
2023-12-08 07:00:00 +11:00
index 72daffba4f..bd92ee304f 100644
2013-02-03 09:38:54 +11:00
--- a/pom.xml
+++ b/pom.xml
2021-11-22 09:00:00 +11:00
@@ -1,13 +1,20 @@
2013-02-03 09:38:54 +11:00
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2015-03-16 10:19:21 +00:00
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.bukkit</groupId>
- <artifactId>craftbukkit</artifactId>
+ <groupId>org.spigotmc</groupId>
+ <artifactId>spigot</artifactId>
<packaging>jar</packaging>
2023-12-08 07:00:00 +11:00
<version>1.20.4-R0.1-SNAPSHOT</version>
2015-03-16 10:19:21 +00:00
- <name>CraftBukkit</name>
+ <name>Spigot</name>
2019-04-25 12:00:00 +10:00
<url>https://www.spigotmc.org/</url>
2013-02-03 09:38:54 +11:00
2015-03-16 10:19:21 +00:00
+ <parent>
+ <groupId>org.spigotmc</groupId>
+ <artifactId>spigot-parent</artifactId>
+ <version>dev-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
2014-11-26 08:27:08 +11:00
+
2021-11-22 09:00:00 +11:00
<properties>
<skipTests>true</skipTests>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -28,8 +35,8 @@
2015-03-16 10:19:21 +00:00
<dependencies>
<dependency>
- <groupId>org.bukkit</groupId>
- <artifactId>bukkit</artifactId>
+ <groupId>org.spigotmc</groupId>
+ <artifactId>spigot-api</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
2016-03-01 08:33:06 +11:00
</dependency>
2023-10-15 11:02:21 +11:00
@@ -290,11 +297,26 @@
2015-03-16 10:19:21 +00:00
<groupId>net.md-5</groupId>
<artifactId>scriptus</artifactId>
2023-07-15 10:46:10 +10:00
<version>0.5.0</version>
2015-03-16 10:19:21 +00:00
- <configuration>
2021-01-16 12:00:00 +11:00
- <format>${bt.name}-Bukkit-%s</format>
2015-03-16 10:19:21 +00:00
- </configuration>
<executions>
<execution>
+ <id>ex-spigot</id>
+ <configuration>
2021-01-16 12:00:00 +11:00
+ <format>${bt.name}-Spigot-%s</format>
2015-03-16 10:19:21 +00:00
+ <scmDirectory>../</scmDirectory>
+ <descriptionProperty>spigot.desc</descriptionProperty>
+ </configuration>
+ <phase>initialize</phase>
+ <goals>
+ <goal>describe</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>ex-craftbukkit</id>
+ <configuration>
+ <format>-%s</format>
+ <scmDirectory>../../CraftBukkit</scmDirectory>
+ <descriptionProperty>craftbukkit.desc</descriptionProperty>
+ </configuration>
<phase>initialize</phase>
<goals>
<goal>describe</goal>
2023-10-15 11:02:21 +11:00
@@ -327,7 +349,7 @@
2015-03-16 10:19:21 +00:00
<manifestEntries>
<Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
<Implementation-Title>CraftBukkit</Implementation-Title>
- <Implementation-Version>${describe}</Implementation-Version>
+ <Implementation-Version>${spigot.desc}${craftbukkit.desc}</Implementation-Version>
2020-04-22 11:50:25 +10:00
<Implementation-Vendor>${project.build.outputTimestamp}</Implementation-Vendor>
2015-03-16 10:19:21 +00:00
<Specification-Title>Bukkit</Specification-Title>
<Specification-Version>${api.version}</Specification-Version>
2013-04-23 11:32:07 +10:00
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
2023-10-15 11:02:21 +11:00
index f905d17b6b..93046379d0 100644
2013-04-23 11:32:07 +10:00
--- a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
+++ b/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) {
2013-02-03 09:38:54 +11:00
--
2023-12-06 03:40:00 +11:00
2.43.0
2013-02-03 09:38:54 +11:00