8000 Fix: javax.inject:javax.inject:1 entry in BOM by jjohannes · Pull Request #8443 · hyperledger/besu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: javax.inject:javax.inject:1 entry in BOM #8443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025

Conversation

jjohannes
Copy link
Contributor
@jjohannes jjohannes commented Mar 19, 2025

PR description

This is a constraint on a version and not a transitive dependency to another BOM/platform. If a Gradle projects depends on both javax.inject:javax.inject and besu, you currently can run into an error like this:

Cannot select module with conflict on capability '...' also provided by [javax.inject:javax.inject:1(platform-compile), javax.inject:javax.inject:1(compile)]

https://scans.gradle.com/s/f237bkq632kb4/failure#1

Fixed Issue(s)

Discovered in hiero-ledger/hiero-gradle-conventions#136

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • [ ] Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • [ ] For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

This is a constraint on a version and not a transitive dependency to
another BOM/platform. If a Gradle projects depends on both
`javax.inject:javax.inject` and `besu`, you currently can run into an
error like this:

Cannot select module with conflict on capability '...' also provided by [javax.inject:javax.inject:1(platform-compile), javax.inject:javax.inject:1(compile)]

Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
@macfarla macfarla requested a review from fab-10 March 20, 2025 23:43
@fab-10 fab-10 enabled auto-merge (squash) March 21, 2025 16:27
@fab-10 fab-10 merged commit b41e282 into hyperledger:main Mar 21, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0