Skip to content

Commit

Permalink
Build snapshot build by default with the same version as OpenSearch. (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock authored and peternied committed Sep 8, 2021
1 parent 65404d1 commit 0ecc626
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ repositories {
jcenter()
}

group 'org.opensearch.commons'
ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
}

allprojects {
group 'org.opensearch.commons'
version = opensearch_version - '-SNAPSHOT' + '.0'
if (isSnapshot) {
version += "-SNAPSHOT"
}
}

sourceCompatibility = 1.8

Expand Down Expand Up @@ -146,8 +156,6 @@ task javadocJar(type: Jar) {
from javadoc.destinationDir
}

version '1.1.0.0'

publishing {
publications {
shadow(MavenPublication) {
Expand Down

0 comments on commit 0ecc626

Please sign in to comment.