• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gradle-jpi-plugin
    • None

      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

          [JENKINS-51620] generateLicenseInfo fails with ivy repositories

          Steve Hill created issue -
          Daniel Spilker made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Steve Hill [ sghill ]
          Steve Hill made changes -
          Released As New: https://github.com/jenkinsci/gradle-jpi-plugin/releases/tag/v0.39.0
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Steve Hill made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            sghill Steve Hill
            sghill Steve Hill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: