mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
This commit address some build failures from the perspective of Intellij. These changes include: * changing an order of a dependency definition that seems to can cause Intellij build to fail. * introduction of an abstract class out of the test source set (seems to be an issue sharing classes cross projects with non-standard source sets. * a couple of missing dependency definitions (not sure how the command line worked prior to this)
28 lines
816 B
Groovy
28 lines
816 B
Groovy
import org.elasticsearch.gradle.info.BuildParams
|
|
import org.elasticsearch.gradle.util.GradleUtils
|
|
|
|
apply plugin: 'elasticsearch.java-rest-test'
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
description 'Die with dignity plugin'
|
|
classname 'org.elasticsearch.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
|
|
|