mirror of https://github.com/apache/lucene.git
31 lines
674 B
Groovy
31 lines
674 B
Groovy
|
|
||
|
// Exclude inner classes from testing.
|
||
|
allprojects {
|
||
|
tasks.withType(Test) { task ->
|
||
|
exclude '**/*$*'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Exclude test classes that are not actually stand-alone tests (they're executed from other stuff).
|
||
|
configure(project(":lucene:replicator")) {
|
||
|
plugins.withType(JavaPlugin) {
|
||
|
test {
|
||
|
exclude "**/SimpleServer*"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
// Resources from top-level project folder are looked up via getClass(). Strange.
|
||
|
configure(project(":lucene:benchmark")) {
|
||
|
plugins.withType(JavaPlugin) {
|
||
|
task syncConf(type: Sync) {
|
||
|
from('conf')
|
||
|
into file("${sourceSets.test.java.outputDir}/conf")
|
||
|
}
|
||
|
processTestResources.dependsOn syncConf
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|