mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 20:52:12 -07:00
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 <git@md-5.net>
This commit is contained in:
@@ -34,6 +34,9 @@
|
|||||||
<property name="checks" value="UnusedImports"/>
|
<property name="checks" value="UnusedImports"/>
|
||||||
<property name="files" value=".*[/\\]net[/\\]minecraft[/\\].*"/>
|
<property name="files" value=".*[/\\]net[/\\]minecraft[/\\].*"/>
|
||||||
</module>
|
</module>
|
||||||
|
<module name="SuppressionSingleFilter">
|
||||||
|
<property name="checks" value="LeftCurly|ParenPad"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
<!-- See https://checkstyle.org/checks/javadoc/index.html -->
|
<!-- See https://checkstyle.org/checks/javadoc/index.html -->
|
||||||
@@ -55,6 +58,13 @@
|
|||||||
<module name="SuppressWithNearbyCommentFilter">
|
<module name="SuppressWithNearbyCommentFilter">
|
||||||
<property name="commentFormat" value="CraftBukkit"/>
|
<property name="commentFormat" value="CraftBukkit"/>
|
||||||
</module>
|
</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 https://checkstyle.org/checks/imports/index.html -->
|
<!-- See https://checkstyle.org/checks/imports/index.html -->
|
||||||
<module name="AvoidStarImport">
|
<module name="AvoidStarImport">
|
||||||
|
@@ -1,13 +1,20 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>craftbukkit</artifactId>
|
<artifactId>spigot</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.21.4-R0.1-SNAPSHOT</version>
|
<version>1.21.4-R0.1-SNAPSHOT</version>
|
||||||
<name>CraftBukkit</name>
|
<name>Spigot</name>
|
||||||
<url>https://www.spigotmc.org/</url>
|
<url>https://www.spigotmc.org/</url>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>org.spigotmc</groupId>
|
||||||
|
<artifactId>spigot-parent</artifactId>
|
||||||
|
<version>dev-SNAPSHOT</version>
|
||||||
|
<relativePath>../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<skipTests>true</skipTests>
|
<skipTests>true</skipTests>
|
||||||
<groups>AllFeatures,Bundle,Legacy,Normal,VanillaFeature</groups>
|
<groups>AllFeatures,Bundle,Legacy,Normal,VanillaFeature</groups>
|
||||||
@@ -28,8 +35,8 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>bukkit</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
@@ -387,11 +394,26 @@
|
|||||||
<groupId>net.md-5</groupId>
|
<groupId>net.md-5</groupId>
|
||||||
<artifactId>scriptus</artifactId>
|
<artifactId>scriptus</artifactId>
|
||||||
<version>0.5.0</version>
|
<version>0.5.0</version>
|
||||||
<configuration>
|
|
||||||
<format>${bt.name}-Bukkit-%s</format>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>ex-spigot</id>
|
||||||
|
<configuration>
|
||||||
|
<format>${bt.name}-Spigot-%s</format>
|
||||||
|
<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>
|
<phase>initialize</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>describe</goal>
|
<goal>describe</goal>
|
||||||
@@ -424,7 +446,7 @@
|
|||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
|
<Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
|
||||||
<Implementation-Title>CraftBukkit</Implementation-Title>
|
<Implementation-Title>CraftBukkit</Implementation-Title>
|
||||||
<Implementation-Version>${describe}</Implementation-Version>
|
<Implementation-Version>${spigot.desc}${craftbukkit.desc}</Implementation-Version>
|
||||||
<Implementation-Vendor>${project.build.outputTimestamp}</Implementation-Vendor>
|
<Implementation-Vendor>${project.build.outputTimestamp}</Implementation-Vendor>
|
||||||
<Specification-Title>Bukkit</Specification-Title>
|
<Specification-Title>Bukkit</Specification-Title>
|
||||||
<Specification-Version>${api.version}</Specification-Version>
|
<Specification-Version>${api.version}</Specification-Version>
|
||||||
|
@@ -11,7 +11,7 @@ public final class Versioning {
|
|||||||
public static String getBukkitVersion() {
|
public static String getBukkitVersion() {
|
||||||
String result = "Unknown-Version";
|
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();
|
Properties properties = new Properties();
|
||||||
|
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
|
Reference in New Issue
Block a user