mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-21 11:46:46 +01:00
[CI SKIP] Added dev build injection to plugin.yml
This commit is contained in:
parent
8edfae054e
commit
297f9f7ba8
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user