Skip to content

Dependency checking does not validate the Java version of artifacts #37

@JakeWharton

Description

@JakeWharton

If you declare an api dependency (but never reference it) or you declare a runtime dependency on an artifact whose Java bytecode is a higher version than yours, the check tasks do not flag it.

I'm not sure the way to validate this:

  • If the artifact has Gradle module metadata that could be checked.
  • Failing that, all class files (except those in META-INF/versions/) should be checked.
  • And maybe even if the artifact has Gradle module metadata the plugin should still validate the class files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions