Houston Putman created LUCENE-9780:
--------------------------------------

             Summary: Only validate JARs for tasks that are enabled.
                 Key: LUCENE-9780
                 URL: https://issues.apache.org/jira/browse/LUCENE-9780
             Project: Lucene - Core
          Issue Type: Improvement
    Affects Versions: master (9.0)
            Reporter: Houston Putman


Currently if you disable parts of the build, such as the tasks in 
{{solr-ref-guide}}, the {{checkDanglingLicenseFiles}} task can fail. This is 
because if all tasks for a module are disabled, then the {{jarInfos}} task will 
be disabled, resulting in a missing {{jarInfos}} property.

I understand this isn't a normal use case for the gradle check functionality, 
but because you can't build the {{solr-ref-guide}} with proxy repos, it's 
necessary to disable the project when trying to build in a restricted 
environment. (The solr-ref-guide is meant to be ignored from the Licenses 
checks, however it still fails when you disable tasks for the project.)

An easy fix would be to merely check to make sure a task is enabled before 
trying to get the {{jarInfos}} for it's project.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to