Skip to content

Commit

Permalink
separating snapshot from local logic
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed Jan 16, 2025
1 parent 1efd934 commit 9792932
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ allprojects {
if (System.getenv("VERSION")==null) {
version = (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
}
else if (System.getenv("VERSION").endsWith("-SNAPSHOT")) {
version = System.getenv("VERSION")
}
else {
version = System.getenv("VERSION") + "-" + File(project.rootDir, "config/version-qualifier.txt").readText().trim()
}
Expand Down

0 comments on commit 9792932

Please sign in to comment.