LUCENE-10192: Move the test framework to a separate top-level folder. I'm not even sure it really needs to be in the binary distribution but it is distinctively different from the rest of the modules.

This commit is contained in:
Dawid Weiss 2021-10-23 22:46:39 +02:00
parent fda47a24f8
commit 39d388330c
1 changed files with 12 additions and 2 deletions

View File

@ -27,6 +27,7 @@ configure(project(":lucene:distribution")) {
docs docs
jars jars
jarsTestFramework
} }
dependencies { DependencyHandler handler -> dependencies { DependencyHandler handler ->
@ -36,9 +37,9 @@ configure(project(":lucene:distribution")) {
// (with a few exceptions explicitly filtered below). // (with a few exceptions explicitly filtered below).
// We don't copy their transitive dependencies. // We don't copy their transitive dependencies.
def binaryModules = rootProject.ext.mavenProjects.findAll { p -> !(p in [ def binaryModules = rootProject.ext.mavenProjects.findAll { p -> !(p in [
// Will end up in a separate binary? // Will end up in a separate binary
project(":lucene:luke"), project(":lucene:luke"),
// NOCOMMIT: Currently breaks the module system so excluded for now. // Placed in a separate module folder.
project(":lucene:test-framework"), project(":lucene:test-framework"),
]) } ]) }
for (Project module : binaryModules) { for (Project module : binaryModules) {
@ -46,6 +47,12 @@ configure(project(":lucene:distribution")) {
transitive = false transitive = false
}) })
} }
// The test framework has split packages and breaks the module system layer so
// it's in a separate folder.
jarsTestFramework(project(":lucene:test-framework"), {
transitive = false
})
} }
@ -92,6 +99,9 @@ configure(project(":lucene:distribution")) {
from(configurations.jars, { from(configurations.jars, {
into 'jars' into 'jars'
}) })
from(configurations.jarsTestFramework, {
into 'test-framework'
})
// Internal archive folder for all files. // Internal archive folder for all files.
into "lucene-${rootProject.version}/" into "lucene-${rootProject.version}/"