Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-753

Non-test dependency reported as Non-test scoped test only dependency

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: analyze
    • Labels:
      None

      Description

      Saw this when updating the google-http-java-client from 3.1.2 to 3.2.0 of the plugin. I'm not immediately sure whether this is a regression:

      [INFO] — maven-dependency-plugin:3.2.0:analyze (default-cli) @ google-http-client —
      Warning: Non-test scoped test only dependencies found:
      Warning: com.google.guava:guava:jar:30.1.1-android:compile
      Warning: io.opencensus:opencensus-api:jar:0.28.0:compile

      Changing Guava to scope test breaks the build, which is expected based on the code. The warning seems incorrect.

      https://github.com/googleapis/google-http-java-client/pull/1396
      https://github.com/googleapis/google-http-java-client/pull/1396/checks?check_run_id=2809438131

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              elharo Elliotte Rusty Harold
              Reporter:
              elharo Elliotte Rusty Harold

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment