diff --git a/.travis.yml b/.travis.yml index 1c6c9ead9..56bb12302 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,16 @@ after_deploy: #Confirm release to Bukkit Dev - chmod +x deploy.sh - "./deploy.sh $Curse_token" + #Deploy to the mvn-repo +- echo "Deploying to the Github..." +- git clone https://$Github_token@github.com/Ghost-chu/maven-repo.git maven-repo +- mvn deploy -DaltDeploymentRepository=mvn-repo::default::file:./maven-repo +- cd maven-repo +- git add . +- git commit -m "Auto update by Travis-CI bot" +- git push --force +- cd .. +- echo "Finish upload to Maven Repository" after_script: #Upload data to BinaryRepository - git clone https://$Github_token@github.com/Ghost-chu/BinaryRepository.git BinaryRepository @@ -60,13 +70,3 @@ after_script: - git push --force - cd .. #Back root - echo "Finish upload to BinaryRepository" - #Deploy to the mvn-repo -- echo "Deploying to the Github..." -- git clone https://$Github_token@github.com/Ghost-chu/maven-repo.git maven-repo -- mvn deploy -DaltDeploymentRepository=mvn-repo::default::file:./maven-repo -- cd maven-repo -- git add . -- git commit -m "Auto update by Travis-CI bot" -- git push --force -- cd .. -- echo "Finish upload to Maven Repository" \ No newline at end of file diff --git a/pom.xml b/pom.xml index 25d8c7f18..993cbe8f0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.maxgamer QuickShop - 3.1.0-TEST + 3.1.0 diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 1a84c6f1d..9f19e99a1 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -21,7 +21,6 @@ package org.maxgamer.quickshop; import java.io.File; import java.io.IOException; -import java.io.InputStreamReader; import java.lang.reflect.Field; import java.nio.file.Files; import java.sql.SQLException; @@ -29,19 +28,15 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; -import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import java.util.Objects; -import java.util.Set; import java.util.UUID; -import java.util.stream.Collectors; import lombok.Getter; import me.minebuilders.clearlag.Clearlag; import me.minebuilders.clearlag.listeners.ItemMergeListener; import org.bukkit.Bukkit; import org.bukkit.configuration.ConfigurationSection; -import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.event.entity.ItemSpawnEvent; @@ -1397,7 +1392,7 @@ public class QuickShop extends JavaPlugin { * * @return The fork name. */ - public String getFork() { + public static String getFork() { return "Reremake"; }