OpenSearch/qa/die-with-dignity/build.gradle

39 lines
1.1 KiB
Groovy

/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
import org.opensearch.gradle.info.BuildParams
import org.opensearch.gradle.util.GradleUtils
apply plugin: 'opensearch.java-rest-test'
apply plugin: 'opensearch.opensearchplugin'
opensearchplugin {
description 'Die with dignity plugin'
classname 'org.opensearch.DieWithDignityPlugin'
}
// let the javaRestTest see the classpath of main
GradleUtils.extendSourceSet(project, "main", "javaRestTest", javaRestTest)
javaRestTest {
systemProperty 'tests.security.manager', 'false'
systemProperty 'tests.system_call_filter', 'false'
nonInputProperties.systemProperty 'log', "${-> testClusters.javaRestTest.singleNode().getServerLog()}"
systemProperty 'runtime.java.home', BuildParams.runtimeJavaHome
}
testClusters.javaRestTest {
systemProperty "die.with.dignity.test", "whatever"
}
test.enabled = false