Apache Lucene open-source search software
LUCENE-10192: drop third party jars from the binary distribution.
Dawid Weissbcdfc4c8c974
diff --git a/lucene/distribution/binary-artifacts.gradle b/lucene/distribution/binary-artifacts.gradleindex 15d83cd8dd3..2b0a2b277dc 100644--- a/lucene/distribution/binary-artifacts.gradle+++ b/lucene/distribution/binary-artifacts.gradle@@ -24,21 +24,8 @@ configure(rootProject.ext.mavenProjects) {}configurations {- // All of the module's "binary" artifacts that should go to the release.+ // All of the module's "binary" artifacts that should go to the binary release.binaryArtifacts-- // Legacy binary distribution contains Lucene artifacts (JARs) and their dependencies- // under 'lib/'. We have to go through some hoops to split the artifact from all of its- // transitive dependencies and separate their output location.- transitiveDependencies {- // All of runtime elements- extendsFrom runtimeElements- // Exclude cross-module dependencies- exclude group: "org.apache.lucene"- // Exclude the following from all projects, if they appear.- exclude group: "commons-logging"- exclude group: "org.slf4j"- }}task assembleBinaryArtifacts(type: Sync) {@@ -48,10 +35,6 @@ configure(rootProject.ext.mavenProjects) {include "README.*"})- from(configurations.transitiveDependencies, {- into "lib/"- })-into binaryArtifactsDir}diff --git a/lucene/distribution/binary-release.gradle b/lucene/distribution/binary-release.gradleindex 31bb7e21b86..adab627a6af 100644--- a/lucene/distribution/binary-release.gradle+++ b/lucene/distribution/binary-release.gradle@@ -25,9 +25,8 @@ configure(project(":lucene:distribution")) {// All the maven-published projects are part of the binary distribution.def includeInBinaries = rootProject.ext.mavenProjects- // Legacy binary distribution contains Lucene artifacts (JARs) and their dependencies- // under 'lib/'. We have to go through some hoops to split the artifact from all of its- // transitive dependencies and separate their output location.+ // Create a separate configuration for each module that ends up in the binary+ // because we want them in different output locations (prefixed with module name).def moduleArtifactConfigurations = []for (Project module : includeInBinaries) {def binaryArtifactsConfiguration = configurations.create("binary-artifacts" + module.path.replace(':', '-'))