From 39d388330c9de82ebf9a791864eba3639c8cf09c Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Sat, 23 Oct 2021 22:46:39 +0200 Subject: [PATCH] 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. --- lucene/distribution/binary-release.gradle | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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}/"