diff --git a/.github/workflows/plugin_install.yml b/.github/workflows/plugin_install.yml index 684cfd7451..ba11120c9f 100644 --- a/.github/workflows/plugin_install.yml +++ b/.github/workflows/plugin_install.yml @@ -3,7 +3,7 @@ name: Plugin Install on: [push, pull_request, workflow_dispatch] env: - OPENSEARCH_VERSION: 1.3.7 + OPENSEARCH_VERSION: 1.3.8 PLUGIN_NAME: opensearch-security jobs: diff --git a/build.gradle b/build.gradle index 01c90b995a..5c7b817826 100644 --- a/build.gradle +++ b/build.gradle @@ -58,7 +58,7 @@ repositories { ext { isSnapshot = "true" == System.getProperty("build.snapshot", "true") - opensearch_version = System.getProperty("opensearch.version", "1.3.7-SNAPSHOT") + opensearch_version = System.getProperty("opensearch.version", "1.3.8-SNAPSHOT") buildVersionQualifier = System.getProperty("build.version_qualifier", "") version_tokens = opensearch_version.tokenize('-') opensearch_build = version_tokens[0] + '.0' @@ -400,6 +400,13 @@ task updateVersion { 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: ".github/workflows/plugin_install.yml") + } + } ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true) } }