[CI SKIP] Add a way to distinguish between dev builds and stable builds from the CI

This commit is contained in:
OmerBenGera 2024-01-20 13:31:14 +02:00
parent 6ba614dab1
commit 3bd4b37958

View File

@ -10,7 +10,8 @@ version = "2023.3"
project.ext { project.ext {
archiveFolder = file("archive/") archiveFolder = file("archive/")
targetFolder = file("target/") targetFolder = file("target/")
buildVersion = System.getenv("BUILD_NUMBER") == null ? version : version + "-b" + System.getenv("BUILD_NUMBER") buildVersion = System.getenv("BUILD_NUMBER") == null || Boolean.parseBoolean(System.getenv("STABLE_BUILD")) ?
version : version + "-b" + System.getenv("BUILD_NUMBER")
} }
allprojects { allprojects {
@ -56,6 +57,7 @@ dependencies {
implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest' implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3' implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3'
implementation 'com.bgsoftware.common.dependencies:DependenciesManager:b2'
// Spigot jars // Spigot jars
compileOnly "org.spigotmc:v1_8_R3:latest" compileOnly "org.spigotmc:v1_8_R3:latest"