Skip to content

Commit

Permalink
release 1.3.5 (#513)
Browse files Browse the repository at this point in the history
Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
  • Loading branch information
prudhvigodithi authored Aug 16, 2022
1 parent 0355c42 commit c190660
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.opensearch.gradle.test.RestIntegTestTask

buildscript {
ext {
opensearch_version = System.getProperty("opensearch.version", "1.3.4-SNAPSHOT")
opensearch_version = System.getProperty("opensearch.version", "1.3.5-SNAPSHOT")
knn_bwc_version = System.getProperty("bwc.version", "1.2.0.0-SNAPSHOT")
opensearch_bwc_version = "${knn_bwc_version}" - ".0-SNAPSHOT"
opensearch_group = "org.opensearch"
Expand Down Expand Up @@ -433,7 +433,7 @@ afterEvaluate {

requires('opensearch', versions.opensearch, EQUAL)
//TODO: Use default knn lib version for now, fix will be compare with version that is used in build step.
requires("opensearch-knnlib", "1.3.4.0", EQUAL)
requires("opensearch-knnlib", "1.3.5.0", EQUAL)
packager = 'Amazon'
vendor = 'Amazon'
os = 'LINUX'
Expand Down Expand Up @@ -476,3 +476,20 @@ afterEvaluate {
tasks = ['build', 'buildRpm', 'buildDeb']
}
}

// updateVersion: Task to auto increment to the next development iteration
task updateVersion {
onlyIf { System.getProperty('newVersion') }
doLast {
ext.newVersion = System.getProperty('newVersion')
println "Setting version to ${newVersion}."
// String tokenization to support -SNAPSHOT
ant.replaceregexp(match: opensearch_version.tokenize('-')[0], replace: newVersion.tokenize('-')[0], flags:'g', byline:true) {
fileset(dir: projectDir) {
// Include the required files that needs to be updated with new Version
include(name: "jni/CMakeLists.txt")
include(name: "build.gradle")
}
}
}
}
2 changes: 1 addition & 1 deletion jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else()
endif()

if(NOT KNN_PLUGIN_VERSION)
set(KNN_PLUGIN_VERSION "1.3.4.0")
set(KNN_PLUGIN_VERSION "1.3.5.0")
endif()

# Set architecture specific variables
Expand Down

0 comments on commit c190660

Please sign in to comment.