Change jar name and version to include "1.17" in them

This commit is contained in:
OmerBenGera 2021-06-12 13:30:57 +03:00
parent ec7f9214ff
commit b54b4b2e67

View File

@ -80,7 +80,7 @@ jar {
processResources {
outputs.upToDateWhen {false}
String versionNumber = System.getenv("BUILD_NUMBER") == null ? version : version + "-DEVb" + System.getenv("BUILD_NUMBER")
String versionNumber = System.getenv("BUILD_NUMBER") == null ? version + "-1.17" : version + "-1.17-DEVb" + System.getenv("BUILD_NUMBER")
eachFile { details ->
if (details.name.contentEquals('plugin.yml')) {
filter { String line ->
@ -94,10 +94,10 @@ shadowJar {
dependsOn(jar)
if(System.getenv("BUILD_NUMBER") == null){
archiveName = rootProject.name + ".jar"
archiveName = rootProject.name + "-1.17.jar"
}
else{
archiveName = rootProject.name + "-b" + System.getenv("BUILD_NUMBER") + ".jar"
archiveName = rootProject.name + "-1.17-b" + System.getenv("BUILD_NUMBER") + ".jar"
}
delete fileTree('./target/') {