LUCENE-9780: Only validate JARs for tasks that are enabled (#2382)

This commit is contained in:
Houston Putman 2021-02-17 18:12:27 -05:00 committed by GitHub
parent c3f6e12876
commit 4bd4f7063b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -333,9 +333,13 @@ configure([project(":solr"), project(":lucene"),]) {
} }
doFirst { doFirst {
def allReferenced = validationTasks.collectMany { task -> def allReferenced = validationTasks
task.project.jarInfos.collectMany { it.referencedFiles } // Only collect for enabled tasks: https://issues.apache.org/jira/browse/LUCENE-9780
}.collect { it.toString() } .findAll { it.enabled }
.collectMany { task ->
task.project.jarInfos.collectMany { it.referencedFiles }
}
.collect { it.toString() }
def patterns = ext.exclude def patterns = ext.exclude
def allExisting = fileTree(licensesDir, { def allExisting = fileTree(licensesDir, {