Skip to content

Commit

Permalink
Build snapshot build by default with the same version as OpenSearch. (#…
Browse files Browse the repository at this point in the history
…58)

Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock authored Aug 16, 2021
1 parent 4f30425 commit cc02f23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: 'main'
ref: '1.x'
- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal
Expand Down
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 cc02f23

Please sign in to comment.