diff --git a/build.gradle b/build.gradle index f2f8e32..6d7eb4c 100644 --- a/build.gradle +++ b/build.gradle @@ -73,10 +73,11 @@ jar { processResources { outputs.upToDateWhen {false} + String versionNumber = System.getenv("BUILD_NUMBER") == null ? version : version + "-DEVb" + System.getenv("BUILD_NUMBER") eachFile { details -> if (details.name.contentEquals('plugin.yml')) { filter { String line -> - line.replace('${project.version}', version) + line.replace('${project.version}', versionNumber) } } } diff --git a/src/main/java/com/bgsoftware/wildloaders/Updater.java b/src/main/java/com/bgsoftware/wildloaders/Updater.java index cfb30d2..3804143 100644 --- a/src/main/java/com/bgsoftware/wildloaders/Updater.java +++ b/src/main/java/com/bgsoftware/wildloaders/Updater.java @@ -20,7 +20,7 @@ public final class Updater { private Updater(){} public static boolean isOutdated(){ - return !plugin.getDescription().getVersion().equals(latestVersion); + return !plugin.getDescription().getVersion().startsWith(latestVersion); } public static String getLatestVersion(){