diff --git a/build.gradle b/build.gradle index 7dc070fab..b34c47729 100644 --- a/build.gradle +++ b/build.gradle @@ -147,6 +147,7 @@ repositories { configurations { zipArchive + secureIntegTestPluginArchive } dependencies { @@ -161,7 +162,7 @@ dependencies { // ZipArchive dependencies used for integration tests zipArchive group: 'org.opensearch.plugin', name:'opensearch-ml-plugin', version: "${opensearch_build}" - zipArchive group: 'org.opensearch.plugin', name:'opensearch-security', version: "${opensearch_build}" + secureIntegTestPluginArchive group: 'org.opensearch.plugin', name:'opensearch-security', version: "${opensearch_build}" configurations.all { resolutionStrategy { @@ -182,7 +183,7 @@ ext{ configureSecurityPlugin = { OpenSearchCluster cluster -> // Retrieve Security Plugin Zip from zipArchive - configurations.zipArchive.asFileTree.each { + configurations.secureIntegTestPluginArchive.asFileTree.each { if(it.name.contains("opensearch-security")) { cluster.plugin(provider(new Callable(){ @Override @@ -346,7 +347,6 @@ testClusters.integTest { // Installs all registered zipArchive dependencies on integTest cluster nodes except security configurations.zipArchive.asFileTree.each { - if(!it.name.contains("opensearch-security")) { plugin(provider(new Callable(){ @Override RegularFile call() throws Exception { @@ -359,7 +359,7 @@ testClusters.integTest { } }) ) - } + } // Install Flow Framwork Plugin on integTest cluster nodes