Moving things back to the Core

After hours of trying to rebase the commits to a31c353,
I decided that it's not that significant anyways.
This commit is contained in:
Norbi Peti 2016-11-02 14:48:40 +01:00
parent fef61b1801
commit 43aefc0639
10 changed files with 15 additions and 12 deletions

View file

@ -5,6 +5,6 @@ jdk:
install: install:
- echo "Downloading Towny JAR..." - echo "Downloading Towny JAR..."
- 'wget -O "Towny.jar" --header="Accept-Language: en-us,en;q=0.5" http://palmergames.com/file-repo/Towny%20Advanced/Development/0.91.1.5/Towny.jar' - 'wget -O "Towny.jar" --header="Accept-Language: en-us,en;q=0.5" http://palmergames.com/file-repo/Towny%20Advanced/Development/0.91.1.5/Towny.jar'
- mvn install:install-file -Dfile=Towny.jar -DgroupId=com.github.TBMCPlugins.ButtonLib -DartifactId=Towny -Dversion=master-SNAPSHOT -Dpackaging=jar - mvn install:install-file -Dfile=Towny.jar -DgroupId=com.github.TBMCPlugins.ButtonCore -DartifactId=Towny -Dversion=master-SNAPSHOT -Dpackaging=jar
- mvn clean install -DskipTests - mvn clean install -DskipTests
# - rm -r ~/.m2/repository/com/palmergames/Towny/ # - rm -r ~/.m2/repository/com/palmergames/Towny/

View file

@ -36,7 +36,7 @@
<target>1.8</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <!-- <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>2.4.2</version> <version>2.4.2</version>
@ -60,7 +60,7 @@
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin> -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>

View file

@ -1,3 +1,4 @@
package buttondevteam.lib; package buttondevteam.lib;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View file

@ -44,8 +44,9 @@ public final class TBMCCoreAPI {
String ret = ""; String ret = "";
URL url; URL url;
try { try {
url = new URL("https://jitpack.io/com/github/TBMCPlugins/" + correctname + "/master-SNAPSHOT/" + correctname url = new URL("https://jitpack.io/com/github/TBMCPlugins/"
+ "-master-SNAPSHOT.jar"); // ButtonLib exception not required, not a separate plugin + (correctname.equals("ButtonCore") ? "ButtonCore/ButtonCore" : correctname) + "/master-SNAPSHOT/"
+ correctname + "-master-SNAPSHOT.jar"); // ButtonCore exception required since it hosts Towny as well
FileUtils.copyURLToFile(url, new File("plugins/" + correctname + ".jar")); FileUtils.copyURLToFile(url, new File("plugins/" + correctname + ".jar"));
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
ret = "Can't find JAR, the build probably failed. Build log (scroll to bottom):\nhttps://jitpack.io/com/github/TBMCPlugins/" ret = "Can't find JAR, the build probably failed. Build log (scroll to bottom):\nhttps://jitpack.io/com/github/TBMCPlugins/"
@ -96,4 +97,4 @@ public final class TBMCCoreAPI {
Bukkit.getLogger().warning(sourcemsg); Bukkit.getLogger().warning(sourcemsg);
e.printStackTrace(); e.printStackTrace();
} }
} }

View file

@ -1,3 +1,4 @@
<<<<<<< HEAD
package buttondevteam.lib; package buttondevteam.lib;
import java.io.File; import java.io.File;
@ -462,4 +463,4 @@ public class TBMCPlayer implements AutoCloseable {
public enum InfoTarget { public enum InfoTarget {
MCHover, MCCommand, Discord MCHover, MCCommand, Discord
} }
} }

View file

@ -33,4 +33,4 @@ public class TBMCPlayerAddEvent extends Event {
public static HandlerList getHandlerList() { public static HandlerList getHandlerList() {
return handlers; return handlers;
} }
} }

View file

@ -24,4 +24,4 @@ public class TBMCPlayerJoinEvent extends Event {
public static HandlerList getHandlerList() { public static HandlerList getHandlerList() {
return handlers; return handlers;
} }
} }

View file

@ -31,4 +31,4 @@ public class TBMCPlayerLoadEvent extends Event {
public static HandlerList getHandlerList() { public static HandlerList getHandlerList() {
return handlers; return handlers;
} }
} }

View file

@ -24,4 +24,4 @@ public class TBMCPlayerQuitEvent extends Event {
public static HandlerList getHandlerList() { public static HandlerList getHandlerList() {
return handlers; return handlers;
} }
} }

View file

@ -31,4 +31,4 @@ public class TBMCPlayerSaveEvent extends Event {
public static HandlerList getHandlerList() { public static HandlerList getHandlerList() {
return handlers; return handlers;
} }
} }