[JIRA] (JENKINS-51620) generateLicenseInfo fails with ivy repositories

3 views
Skip to first unread message

sghill.dev@gmail.com (JIRA)

unread,
May 30, 2018, 12:48:02 PM5/30/18
to jenkinsc...@googlegroups.com
Steve Hill created an issue
 
Jenkins / Bug JENKINS-51620
generateLicenseInfo fails with ivy repositories
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: gradle-jpi-plugin
Created: 2018-05-30 16:47
Priority: Minor Minor
Reporter: Steve Hill

generateLicenseInfo explicitly requests a pom for each dependency, but there isn't a pom in ivy repositories. This results in a build failure for a missing artifact:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateLicenseInfo'.
> Could not find <artifact-name>.pom (<group>:<artifact-name>:<version>).
  Searched in the following locations:
      <repo>

The workaround is to explicitly disable the task in your build.gradle:

generateLicenseInfo.enabled = false

I think it's desirable for the plugin to work by default if there are ivy repositories defined, and any of the following could be workable solutions:

  • generateLicenseInfo.onlyIf { configurePublishing }
  • generateLicenseInfo.onlyIf { all repositories are maven }
  • issue a warning instead of failing if a pom cannot be found
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

mail@daniel-spilker.com (JIRA)

unread,
Mar 25, 2019, 4:26:03 AM3/25/19
to jenkinsc...@googlegroups.com
Daniel Spilker assigned an issue to Steve Hill
Change By: Daniel Spilker
Assignee: Daniel Spilker Steve Hill
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

sghill.dev@gmail.com (JIRA)

unread,
Apr 15, 2020, 10:20:02 AM4/15/20
to jenkinsc...@googlegroups.com
Steve Hill updated Bug JENKINS-51620
 

This no longer fails if a pom cannot be resolved for license information. Instead it warns by listing dependencies that will be missing from the licenses.xml. The task can be disabled as in the description if necessary.

Change By: Steve Hill
Status: Open Fixed but Unreleased
Resolution: Fixed
Released As: https://github.com/jenkinsci/gradle-jpi-plugin/releases/tag/v0.39.0
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

sghill.dev@gmail.com (JIRA)

unread,
Apr 15, 2020, 10:20:03 AM4/15/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages