From d7f55d680af759964a992fee0e565fa92e064d6a Mon Sep 17 00:00:00 2001 From: msfroh Date: Thu, 16 Mar 2023 11:15:54 -0700 Subject: [PATCH] Switch 2.x build to 2.7.0 (#119) Also, backported the plugin version logic from main branch. Signed-off-by: Michael Froh --- build.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d9381da..4333372 100644 --- a/build.gradle +++ b/build.gradle @@ -38,7 +38,7 @@ publishing { } } opensearchplugin { - name "opensearch-${pluginName}-${opensearch_version}.0" + name "opensearch-${pluginName}-${plugin_version}.0" description pluginDescription classname "${projectPath}.${pathToPlugin}.${pluginClassName}" licenseFile rootProject.file('LICENSE') @@ -53,7 +53,13 @@ validateNebulaPom.enabled = false buildscript { ext { - opensearch_version = "2.6.0" + plugin_version = "2.7.0" + snapshot = true // Set to false on release + if (snapshot) { + opensearch_version = plugin_version + "-SNAPSHOT" + } else { + opensearch_version = plugin_version + } } repositories {