diff --git a/build.gradle b/build.gradle index c4228d8be..59d94a7f4 100644 --- a/build.gradle +++ b/build.gradle @@ -66,7 +66,7 @@ ext { projectSubstitutions = [:] configureSecurityPlugin = { OpenSearchCluster cluster -> - configurations.zipArchive.asFileTree.each { + configurations.secureIntegTestPluginArchive.asFileTree.each { if(it.name.contains("opensearch-security")){ cluster.plugin(provider(new Callable() { @Override @@ -160,6 +160,7 @@ allprojects { configurations { zipArchive + secureIntegTestPluginArchive } tasks.register("preparePluginPathDirs") { @@ -231,7 +232,7 @@ dependencies { api "org.opensearch:opensearch:${opensearch_version}" zipArchive group: 'org.opensearch.plugin', name:'opensearch-knn', version: "${opensearch_build}" 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}" compileOnly fileTree(dir: knnJarDirectory, include: '*.jar') api group: 'org.opensearch', name:'opensearch-ml-client', version: "${opensearch_build}" testFixturesImplementation "org.opensearch.test:framework:${opensearch_version}"