Enable security manager for messy groovy tests

Original commit: elastic/x-pack-elasticsearch@4b2b256a04
This commit is contained in:
Ryan Ernst 2015-12-08 17:26:53 -08:00
parent c040840e7e
commit 4bbd4c25b0
1 changed files with 7 additions and 4 deletions

View File

@ -11,8 +11,11 @@ dependencies {
testCompile project(path: ':modules:lang-groovy', configuration: 'runtime')
}
// TODO: remove this, its because gradle does not bring in plugin-metadata for lang-groovy
// into the test classpath: if it did, then things will work
test {
systemProperty 'tests.security.manager', 'false'
gradle.projectsEvaluated {
Project groovy = project(':modules:lang-groovy')
sourceSets.test.resources {
srcDir groovy.pluginProperties.generatedResourcesDir
srcDir new File(groovy.projectDir, 'src/main/plugin-metadata')
}
test.dependsOn groovy.pluginProperties
}