Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3485

Allow wildcard dependency removal

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.5.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL
    • Labels:
      None

      Description

      I would like to be able to type:

      dependency remove --groupId foo --artifactId bar --version *

      or simply:

      dependency remove --groupId foo --artifactId bar

      Example:

      When I create a project, I want to update all logging (Log4j, JUL, JCL) to SLF4J:

      dependency add --groupId org.slf4j --artifactId slf4j.api --version ${slf4j.version}
      dependency add --groupId org.slf4j --artifactId jcl-over-slf4j --version ${slf4j.version}
      dependency add --groupId org.slf4j --artifactId jul-to-slf4j --version ${slf4j.version}
      dependency add --groupId logback-classic --artifactId logback-classic --version ${logback.version}
      dependency add --groupId org.slf4j --artifactId log4j-over-slf4j --version ${slf4j.version}

      After SLF4J/Logback is in place, I then want to remove the LOG4J packaged with Spring Roo, but I have to specify the version:

      dependency remove --groupId log4j --artifactId log4j --version 1.2.17

      A more flexible approach would be managing the removal of the dependency by artifactId:groupId, since that node should define the library.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jjzabkar JJ Zabkar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: