Skip to content

Gradle consumers issue #81

@elect86

Description

@elect86

Gradle has a known issue when it comes to bom, it can't properly resolve dependency versions which have more than one layer of indirection

In my case, that is jackson.version.module.kotlin in jackson-bom-2.16.1

<jackson.version>2.16.1</jackson.version>
<jackson.version.module>${jackson.version}</jackson.version.module>
<jackson.version.module.kotlin>${jackson.version.module}</jackson.version.module.kotlin>

Could not resolve all dependencies for configuration ':webstartRes'.
Could not find com.fasterxml.jackson.module:jackson-module-kotlin:.

If jackson.version.module.kotlin had ${jackson.version}, then it'd work fine instead

How to fix this?

  1. Switch to Gradle Platform, this will generate .pom for Maven users and .module for Gradle ones
  2. Leave the current Maven implementation as it is and simply inject within it a Gradle .module file generation and include that in the publication, as I did with pom-Scijava, where you have platform (and catalog, if you want) published altogether at the very same coordinates.

I can provide a PR for either of them

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