[CI SKIP] Added dev build injection to plugin.yml

This commit is contained in:
OmerBenGera 2021-03-14 11:50:13 +02:00
parent 8edfae054e
commit 297f9f7ba8
2 changed files with 3 additions and 2 deletions

View File

@ -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)
}
}
}

View File

@ -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(){