From 4e121fb441c87caceba349e1a9583b6704586d4e Mon Sep 17 00:00:00 2001 From: Joshua Palis Date: Sat, 20 Jan 2024 00:09:57 +0000 Subject: [PATCH] conditionally pulling security plugin Signed-off-by: Joshua Palis --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 26da3f336..3ce24a3a9 100644 --- a/build.gradle +++ b/build.gradle @@ -162,7 +162,11 @@ 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}" + + // Only pull security plugin dependency if security is enabled + if(System.getProperty('security.enabled') == 'true'){ + zipArchive group: 'org.opensearch.plugin', name:'opensearch-security', version: "${opensearch_build}" + } configurations.all { resolutionStrategy {