Skip to content

Locator dependency being created with invalid version value if it is not specified #798

@timocov

Description

@timocov

Given the following configuration the plugin adds a dependency which dep.getVersion() returns "null" (a string with null value in it):

protobuf {
  protoc {
    artifact = 'com.google.protobuf:protoc'
  }
}

Before 0.9.6 it was correctly set to null. The issue introduced in #786.

Whilst everything it seems working fine, it doesn't feel like the correct behaviour and some plugins that operate with dependencies might break/behave incorrectly because of that.

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