FasterXML / FasterXML/jackson-bom

Gradle consumers issue

Open
#81 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Logos
Stars
71
Forks
36
Avg merge
2h 26m
Merged PRs (30d)
2

Description

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](https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.16.1/jackson-bom-2.16.1.pom)

```xml
2.16.1
${jackson.version}
${jackson.version.module}
```

> > 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](https://github.com/scijava/pom-scijava/pull/268), where you have platform (and catalog, if you want) published altogether at the very [same coordinates](https://repo1.maven.org/maven2/org/scijava/pom-scijava/40.0.0/).

I can provide a PR for either of them

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.