Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-66

Allow "resolve" to take in Collection<String> and Collection<MavenDependency>

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0-alpha-2, 2.0.0-alpha-3
    • Fix Version/s: 2.0.0-alpha-5
    • Component/s: None
    • Labels:

      Description

      From Craig Ringer:

      -----------
      Since `resolve(…)` doesn’t take a `Collection`, only an array, I have to accumulate in a set or list then pass an array view of it to resolve(), eg given a Set artifacts:

      archive.addAsLibraries(resolver.resolve(artifacts.toArray(new String[artifacts.size()])).withTransitivity().as(File.class));

      -----------

      Save the user the extra step of having to convert Collections to an array by enhancing the API to accept Collections natively.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                alrubinger Andrew Rubinger
                Reporter:
                alrubinger Andrew Rubinger
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: