2014-04-12 04:18:37 +00:00
|
|
|
From 0201039c8f4f9a6a4cefc836b6d5866a4e10fae0 Mon Sep 17 00:00:00 2001
|
2013-02-02 22:38:54 +00:00
|
|
|
From: md_5 <md_5@live.com.au>
|
2013-07-02 03:14:40 +00:00
|
|
|
Date: Tue, 2 Jul 2013 13:07:39 +1000
|
2013-04-23 01:35:18 +00:00
|
|
|
Subject: [PATCH] POM Changes
|
2013-02-02 22:38:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
2014-04-12 04:18:37 +00:00
|
|
|
index 3d4395d..2b14bef 100644
|
2013-02-02 22:38:54 +00:00
|
|
|
--- a/pom.xml
|
|
|
|
+++ b/pom.xml
|
2013-02-02 22:54:16 +00:00
|
|
|
@@ -1,12 +1,20 @@
|
2013-02-02 22:38:54 +00:00
|
|
|
<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">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
- <groupId>org.bukkit</groupId>
|
|
|
|
- <artifactId>craftbukkit</artifactId>
|
2013-02-02 22:54:16 +00:00
|
|
|
+
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.spigotmc</groupId>
|
|
|
|
+ <artifactId>spigot-parent</artifactId>
|
|
|
|
+ <version>dev-SNAPSHOT</version>
|
|
|
|
+ <relativePath>../pom.xml</relativePath>
|
|
|
|
+ </parent>
|
|
|
|
+
|
2013-02-02 22:38:54 +00:00
|
|
|
+ <groupId>org.spigotmc</groupId>
|
|
|
|
+ <artifactId>spigot</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
2014-04-12 04:18:37 +00:00
|
|
|
<version>1.7.8-R0.1-SNAPSHOT</version>
|
2013-02-02 22:38:54 +00:00
|
|
|
- <name>CraftBukkit</name>
|
|
|
|
- <url>http://www.bukkit.org</url>
|
|
|
|
+ <name>Spigot</name>
|
|
|
|
+ <url>http://www.spigotmc.org</url>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2013-10-24 10:23:24 +00:00
|
|
|
@@ -18,25 +26,6 @@
|
|
|
|
<buildtag.suffix></buildtag.suffix>
|
2013-02-02 22:38:54 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
- <scm>
|
|
|
|
- <connection>scm:git:git://github.com/Bukkit/CraftBukkit.git</connection>
|
|
|
|
- <developerConnection>scm:git:ssh://git@github.com/Bukkit/CraftBukkit.git</developerConnection>
|
|
|
|
- <url>https://github.com/Bukkit/CraftBukkit</url>
|
|
|
|
- </scm>
|
2013-02-02 22:48:23 +00:00
|
|
|
-
|
|
|
|
- <distributionManagement>
|
|
|
|
- <repository>
|
2013-02-02 22:38:54 +00:00
|
|
|
- <id>repobo-rel</id>
|
|
|
|
- <name>repo.bukkit.org Releases</name>
|
|
|
|
- <url>http://repo.bukkit.org/content/repositories/releases/</url>
|
2013-02-02 22:48:23 +00:00
|
|
|
- </repository>
|
|
|
|
- <snapshotRepository>
|
2013-02-02 22:38:54 +00:00
|
|
|
- <id>repobo-snap</id>
|
|
|
|
- <name>repo.bukkit.org Snapshots</name>
|
|
|
|
- <url>http://repo.bukkit.org/content/repositories/snapshots/</url>
|
2013-02-02 22:48:23 +00:00
|
|
|
- </snapshotRepository>
|
|
|
|
- </distributionManagement>
|
|
|
|
-
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>repobo-snap</id>
|
2013-10-24 10:23:24 +00:00
|
|
|
@@ -53,8 +42,8 @@
|
2013-02-02 22:38:54 +00:00
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
- <groupId>org.bukkit</groupId>
|
|
|
|
- <artifactId>bukkit</artifactId>
|
|
|
|
+ <groupId>org.spigotmc</groupId>
|
|
|
|
+ <artifactId>spigot-api</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>jar</type>
|
|
|
|
<scope>compile</scope>
|
2013-10-24 10:23:24 +00:00
|
|
|
@@ -107,33 +96,6 @@
|
2013-07-04 10:05:41 +00:00
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<version>2.1</version>
|
|
|
|
</dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.avaje</groupId>
|
|
|
|
- <artifactId>ebean</artifactId>
|
|
|
|
- <version>2.7.3</version>
|
|
|
|
- <type>jar</type>
|
|
|
|
- <scope>provided</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.yaml</groupId>
|
|
|
|
- <artifactId>snakeyaml</artifactId>
|
|
|
|
- <version>1.9</version>
|
|
|
|
- <type>jar</type>
|
|
|
|
- <scope>provided</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.google.guava</groupId>
|
|
|
|
- <artifactId>guava</artifactId>
|
|
|
|
- <version>10.0</version>
|
|
|
|
- <type>jar</type>
|
|
|
|
- <scope>provided</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>commons-lang</groupId>
|
|
|
|
- <artifactId>commons-lang</artifactId>
|
|
|
|
- <version>2.3</version>
|
|
|
|
- <scope>provided</scope>
|
|
|
|
- </dependency>
|
|
|
|
<!-- testing -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
2013-10-24 10:23:24 +00:00
|
|
|
@@ -147,19 +109,24 @@
|
2013-02-02 22:38:54 +00:00
|
|
|
<version>1.3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>net.sf.trove4j</groupId>
|
|
|
|
+ <artifactId>trove4j</artifactId>
|
2013-07-02 03:03:56 +00:00
|
|
|
+ <version>3.0.3</version>
|
2013-02-02 22:38:54 +00:00
|
|
|
+ </dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<!-- This builds a completely 'ready to start' jar with all dependencies inside -->
|
2013-03-07 06:45:12 +00:00
|
|
|
<build>
|
|
|
|
- <defaultGoal>clean install</defaultGoal>
|
2013-04-23 01:35:18 +00:00
|
|
|
+ <defaultGoal>install</defaultGoal>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2013-03-07 06:45:12 +00:00
|
|
|
<groupId>com.lukegb.mojo</groupId>
|
2013-02-02 22:38:54 +00:00
|
|
|
<artifactId>gitdescribe-maven-plugin</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<configuration>
|
2013-10-24 10:23:24 +00:00
|
|
|
- <outputPrefix>${buildtag.prefix}</outputPrefix>
|
|
|
|
- <outputPostfix>${buildtag.suffix}</outputPostfix>
|
2013-02-02 22:38:54 +00:00
|
|
|
+ <outputPrefix>git-Spigot-</outputPrefix>
|
2013-10-24 10:23:24 +00:00
|
|
|
+ <outputPostfix></outputPostfix>
|
2013-02-02 22:38:54 +00:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
2013-10-24 10:23:24 +00:00
|
|
|
<execution>
|
|
|
|
@@ -212,7 +179,7 @@
|
2013-02-02 22:38:54 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
- <version>1.4</version>
|
2013-12-04 08:57:08 +00:00
|
|
|
+ <version>2.1</version>
|
2013-02-02 22:38:54 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
2013-06-21 07:00:01 +00:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2014-04-12 04:18:37 +00:00
|
|
|
index 748d887..adeab3f 100644
|
2013-06-21 07:00:01 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2014-03-29 22:09:24 +00:00
|
|
|
@@ -303,7 +303,7 @@ public final class CraftServer implements Server {
|
2013-12-01 03:40:53 +00:00
|
|
|
loadIcon();
|
2013-06-21 07:00:01 +00:00
|
|
|
|
|
|
|
updater = new AutoUpdater(new BukkitDLUpdaterService(configuration.getString("auto-updater.host")), getLogger(), configuration.getString("auto-updater.preferred-channel"));
|
|
|
|
- updater.setEnabled(configuration.getBoolean("auto-updater.enabled"));
|
|
|
|
+ updater.setEnabled(false); // Spigot
|
|
|
|
updater.setSuggestChannels(configuration.getBoolean("auto-updater.suggest-channels"));
|
|
|
|
updater.getOnBroken().addAll(configuration.getStringList("auto-updater.on-broken"));
|
|
|
|
updater.getOnUpdate().addAll(configuration.getStringList("auto-updater.on-update"));
|
2013-04-23 01:32:07 +00:00
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
|
|
|
index f905d17..9304637 100644
|
|
|
|
--- 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-02 22:38:54 +00:00
|
|
|
--
|
2014-03-29 22:09:24 +00:00
|
|
|
1.8.3.2
|
2013-02-02 22:38:54 +00:00
|
|
|
|