mirror of https://github.com/apache/lucene.git
LUCENE-9780: Only validate JARs for tasks that are enabled (#2382)
This commit is contained in:
parent
c3f6e12876
commit
4bd4f7063b
|
@ -333,9 +333,13 @@ configure([project(":solr"), project(":lucene"),]) {
|
|||
}
|
||||
|
||||
doFirst {
|
||||
def allReferenced = validationTasks.collectMany { task ->
|
||||
task.project.jarInfos.collectMany { it.referencedFiles }
|
||||
}.collect { it.toString() }
|
||||
def allReferenced = validationTasks
|
||||
// Only collect for enabled tasks: https://issues.apache.org/jira/browse/LUCENE-9780
|
||||
.findAll { it.enabled }
|
||||
.collectMany { task ->
|
||||
task.project.jarInfos.collectMany { it.referencedFiles }
|
||||
}
|
||||
.collect { it.toString() }
|
||||
|
||||
def patterns = ext.exclude
|
||||
def allExisting = fileTree(licensesDir, {
|
||||
|
|
Loading…
Reference in New Issue