Skip to content

Apache Lucene open-source search software

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.

Dawid Weiss39d388330c9d
diff --git a/lucene/distribution/binary-release.gradle b/lucene/distribution/binary-release.gradle
index 65ea69d567c..041f8623ef5 100644
--- a/lucene/distribution/binary-release.gradle
+++ b/lucene/distribution/binary-release.gradle
@@ -27,6 +27,7 @@ configure(project(":lucene:distribution")) {
docs
jars
+ jarsTestFramework
}
dependencies { DependencyHandler handler ->
@@ -36,9 +37,9 @@ configure(project(":lucene:distribution")) {
// (with a few exceptions explicitly filtered below).
// We don't copy their transitive dependencies.
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"),
- // NOCOMMIT: Currently breaks the module system so excluded for now.
+ // Placed in a separate module folder.
project(":lucene:test-framework"),
]) }
for (Project module : binaryModules) {
@@ -46,6 +47,12 @@ configure(project(":lucene:distribution")) {
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, {
into 'jars'
})
+ from(configurations.jarsTestFramework, {
+ into 'test-framework'
+ })
// Internal archive folder for all files.
into "lucene-${rootProject.version}/"