Skip to content

Commit

Permalink
Update build.gradle to use isSnapshot logic
Browse files Browse the repository at this point in the history
Signed-off-by: Khushboo Rajput <[email protected]>
  • Loading branch information
khushbr committed Nov 17, 2023
1 parent b86f6e3 commit 7ecd930
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ buildscript {
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
buildDockerJdkVersion = System.getProperty("build.docker_jdk_ver", "11")

// The PA Commons (https://github.com/opensearch-project/performance-analyzer-commons)
// is a library dependency with hardcoded versioning in PA and RCA repos.
paCommonsVersion = "1.2.0"

// 2.x.0-SNAPSHOT -> 2.x.0.0-SNAPSHOT
version_tokens = opensearch_version.tokenize('-')
opensearch_build = version_tokens[0] + '.0'
Expand All @@ -19,6 +23,7 @@ buildscript {
}
if (isSnapshot) {
opensearch_build += "-SNAPSHOT"
paCommonsVersion += "-SNAPSHOT"
}
gitPaBranch = '2.11'
gitPaRepo = "https://github.com/opensearch-project/performance-analyzer.git"
Expand Down Expand Up @@ -353,7 +358,7 @@ dependencies {
implementation 'org.checkerframework:checker-qual:3.29.0'
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonDataBindVersion}"
implementation "org.opensearch:performance-analyzer-commons:1.2.0-SNAPSHOT"
implementation "org.opensearch:performance-analyzer-commons:${paCommonsVersion}"
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: "${log4jVersion}"
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
implementation group: 'org.apache.commons', name: 'commons-lang3', version: "${commonslangVersion}"
Expand Down

0 comments on commit 7ecd930

Please sign in to comment.