diff --git a/build.gradle b/build.gradle index b01731f..e94ca99 100644 --- a/build.gradle +++ b/build.gradle @@ -174,11 +174,15 @@ task copyZIPBundle { } } +// A hack. For some reason we can not reference 'ext' variables from testClusters, hence we define actual opensearch +// version the following way which seems to work fine for testClusters. See issue #324 +project.opensearch_version = ext.versions.opensearch + // Clusters for BWC tests 2.times { i -> testClusters { "${baseName}$i" { - versions = [project.BWCversion, "2.17.1"] + versions = [project.BWCversion, project.opensearch_version] numberOfNodes = 3 plugin(provider(new Callable() { @Override diff --git a/gradle.properties b/gradle.properties index ac4f89f..d1c8488 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,9 @@ # An actual version of plugin version = 2.17.1.0 +# Leave this property empty, it is assigned during the gradle build execution (yes, it is a hack! see issue #324) +opensearch_version = + # A version of OpenSearch cluster to run BWC tests against BWCversion = 2.17.0