Skip to content

Commit 80a3d06

Browse files
committed
Move version to a text file to ease backports and automation
1 parent 79fd7e3 commit 80a3d06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
allprojects {
2121
group = "co.elastic.clients"
22-
version = System.getenv("VERSION") ?: "7.x-SNAPSHOT"
22+
// Release manager provides a $VERSION. If not present, it's a local or CI snapshot build.
23+
version = System.getenv("VERSION") ?:
24+
(File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
2325

2426
repositories {
2527
mavenCentral()

config/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.15.0

0 commit comments

Comments
 (0)