You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2021/02/17 23:12:45 UTC

[lucene-solr] branch master updated: LUCENE-9780: Only validate JARs for tasks that are enabled (#2382)

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 4bd4f70  LUCENE-9780: Only validate JARs for tasks that are enabled (#2382)
4bd4f70 is described below

commit 4bd4f7063bb5b796422857c9790ad4673ede3411
Author: Houston Putman <ho...@apache.org>
AuthorDate: Wed Feb 17 18:12:27 2021 -0500

    LUCENE-9780: Only validate JARs for tasks that are enabled (#2382)
---
 gradle/validation/jar-checks.gradle | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gradle/validation/jar-checks.gradle b/gradle/validation/jar-checks.gradle
index d21cae3..6e1f97a 100644
--- a/gradle/validation/jar-checks.gradle
+++ b/gradle/validation/jar-checks.gradle
@@ -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, {