Skip to content

Commit

Permalink
conditionally pulling security plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Jan 20, 2024
1 parent 789fc4d commit 4e121fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4e121fb

Please sign in to comment.