Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-17783: Disable securityManager for GCS Tests on Windows

Houston Putmance30cdc9386c
diff --git a/solr/modules/gcs-repository/build.gradle b/solr/modules/gcs-repository/build.gradle
index 3e010f2b21d..d8a7787b641 100644
--- a/solr/modules/gcs-repository/build.gradle
+++ b/solr/modules/gcs-repository/build.gradle
@@ -1,3 +1,5 @@
+import org.apache.tools.ant.taskdefs.condition.Os
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -19,6 +21,11 @@ apply plugin: 'java-library'
description = 'GCS Backup Repository'
+ext {
+ // Use of the security manager is not supported on windows.
+ useSecurityManager = !Os.isFamily(Os.FAMILY_WINDOWS)
+}
+
dependencies {
implementation platform(project(':platform'))
api project(':solr:core')