2013-05-04 07:24:15 +08:00
|
|
|
From 8edff6175591d990912fcb203e86d27c6d7aaf86 Mon Sep 17 00:00:00 2001
|
2013-02-03 06:38:54 +08:00
|
|
|
From: md_5 <md_5@live.com.au>
|
2013-04-23 09:35:18 +08:00
|
|
|
Date: Tue, 23 Apr 2013 11:34:54 +1000
|
|
|
|
Subject: [PATCH] POM Changes
|
2013-02-03 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
2013-05-04 07:24:15 +08:00
|
|
|
index e946de6..274fd43 100644
|
2013-02-03 06:38:54 +08:00
|
|
|
--- a/pom.xml
|
|
|
|
+++ b/pom.xml
|
2013-02-03 06:54:16 +08:00
|
|
|
@@ -1,12 +1,20 @@
|
2013-02-03 06:38:54 +08: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-03 06:54:16 +08:00
|
|
|
+
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.spigotmc</groupId>
|
|
|
|
+ <artifactId>spigot-parent</artifactId>
|
|
|
|
+ <version>dev-SNAPSHOT</version>
|
|
|
|
+ <relativePath>../pom.xml</relativePath>
|
|
|
|
+ </parent>
|
|
|
|
+
|
2013-02-03 06:38:54 +08:00
|
|
|
+ <groupId>org.spigotmc</groupId>
|
|
|
|
+ <artifactId>spigot</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
2013-05-04 07:24:15 +08:00
|
|
|
<version>1.5.2-R0.2-SNAPSHOT</version>
|
2013-02-03 06:38:54 +08: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-02-03 06:54:16 +08:00
|
|
|
@@ -16,25 +24,6 @@
|
2013-05-01 06:33:27 +08:00
|
|
|
<minecraft_version>1_5_R3</minecraft_version>
|
2013-02-03 06:38:54 +08: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-03 06:48:23 +08:00
|
|
|
-
|
|
|
|
- <distributionManagement>
|
|
|
|
- <repository>
|
2013-02-03 06:38:54 +08:00
|
|
|
- <id>repobo-rel</id>
|
|
|
|
- <name>repo.bukkit.org Releases</name>
|
|
|
|
- <url>http://repo.bukkit.org/content/repositories/releases/</url>
|
2013-02-03 06:48:23 +08:00
|
|
|
- </repository>
|
|
|
|
- <snapshotRepository>
|
2013-02-03 06:38:54 +08:00
|
|
|
- <id>repobo-snap</id>
|
|
|
|
- <name>repo.bukkit.org Snapshots</name>
|
|
|
|
- <url>http://repo.bukkit.org/content/repositories/snapshots/</url>
|
2013-02-03 06:48:23 +08:00
|
|
|
- </snapshotRepository>
|
|
|
|
- </distributionManagement>
|
|
|
|
-
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>repobo-snap</id>
|
2013-02-03 06:54:16 +08:00
|
|
|
@@ -42,17 +31,10 @@
|
2013-02-03 06:38:54 +08:00
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
- <pluginRepositories>
|
|
|
|
- <pluginRepository>
|
|
|
|
- <id>bukkit-plugins</id>
|
|
|
|
- <url>http://repo.bukkit.org/content/groups/public</url>
|
|
|
|
- </pluginRepository>
|
|
|
|
- </pluginRepositories>
|
|
|
|
-
|
|
|
|
<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-03-17 09:27:11 +08:00
|
|
|
@@ -145,18 +127,23 @@
|
2013-02-03 06:38:54 +08:00
|
|
|
<version>1.3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>net.sf.trove4j</groupId>
|
|
|
|
+ <artifactId>trove4j</artifactId>
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<!-- This builds a completely 'ready to start' jar with all dependencies inside -->
|
2013-03-07 14:45:12 +08:00
|
|
|
<build>
|
|
|
|
- <defaultGoal>clean install</defaultGoal>
|
2013-04-23 09:35:18 +08:00
|
|
|
+ <defaultGoal>install</defaultGoal>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2013-03-07 14:45:12 +08:00
|
|
|
<groupId>com.lukegb.mojo</groupId>
|
2013-02-03 06:38:54 +08:00
|
|
|
<artifactId>gitdescribe-maven-plugin</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<configuration>
|
|
|
|
- <outputPrefix>git-Bukkit-</outputPrefix>
|
|
|
|
+ <outputPrefix>git-Spigot-</outputPrefix>
|
|
|
|
<outputPostfix></outputPostfix>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
2013-03-17 09:27:11 +08:00
|
|
|
@@ -210,7 +197,7 @@
|
2013-02-03 06:38:54 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
- <version>1.4</version>
|
|
|
|
+ <version>2.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
2013-04-23 09:32:07 +08: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-03 06:38:54 +08:00
|
|
|
--
|
2013-04-10 12:08:33 +08:00
|
|
|
1.8.2.1
|
2013-02-03 06:38:54 +08:00
|
|
|
|