We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92790a7 commit 1ed61c5Copy full SHA for 1ed61c5
build.gradle.kts
@@ -20,8 +20,10 @@
20
allprojects {
21
group = "co.elastic.clients"
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")
+ // also need to add the qualifier in case it's a staging build
+ version = if(System.getenv("VERSION").isEmpty()) (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
25
+ else System.getenv("VERSION") + "-" + File(project.rootDir, "config/version-qualifier.txt").readText().trim()
26
+
27
repositories {
28
maven {
29
name = "Elastic-Snapshots"
0 commit comments