Skip to content

Commit

Permalink
[CI SKIP] Add a way to distinguish between dev builds and stable buil…
Browse files Browse the repository at this point in the history
…ds from the CI
  • Loading branch information
OmerBenGera committed Jan 20, 2024
1 parent 074295e commit 294fe83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ version = "2023.3"
project.ext {
archiveFolder = file("archive/")
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 {
Expand Down Expand Up @@ -58,6 +59,7 @@ dependencies {
implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3'
implementation 'com.bgsoftware.common.updater:Updater:latest'
implementation 'com.bgsoftware.common.shopsbridge:ShopsBridge:b6:all@jar'
implementation 'com.bgsoftware.common.dependencies:DependenciesManager:b2'

// Spigot jars
compileOnly "org.spigotmc:v1_8_R1:latest"
Expand Down

0 comments on commit 294fe83

Please sign in to comment.