Skip to content

Conversation

@JinwooHwang
Copy link
Contributor

jakarta.resource-api:2.1.0 declares a transitive dependency on jakarta.annotation-api:2.1.0, but Spring Boot 3.3.4 (used by geode-gfsh) requires jakarta.annotation-api:2.1.1. This causes Maven enforcer to fail with a version conflict error.

By explicitly declaring jakarta.annotation-api as an api dependency in geode-core, the published POM will include it with version 2.1.1 (from DependencyConstraints), which takes precedence over the transitive 2.1.0 dependency from jakarta.resource-api.

Reported-by: Leon Finker

For all changes, please confirm:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
  • Has your PR been rebased against the latest commit within the target branch (typically develop)?
  • Is your initial contribution a single, squashed commit?
  • Does gradlew build run cleanly?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

jakarta.resource-api:2.1.0 declares a transitive dependency on
jakarta.annotation-api:2.1.0, but Spring Boot 3.3.4 (used by geode-gfsh)
requires jakarta.annotation-api:2.1.1. This causes Maven enforcer to
fail with a version conflict error.

By explicitly declaring jakarta.annotation-api as an api dependency
in geode-core, the published POM will include it with version 2.1.1
(from DependencyConstraints), which takes precedence over the
transitive 2.1.0 dependency from jakarta.resource-api.

Reported-by: Leon Finker
@JinwooHwang
Copy link
Contributor Author

Hi @sboorlagadda and @leonfin . I would appreciate your review. Thank you.

@JinwooHwang
Copy link
Contributor Author

Thank you so much for your review and approval, @sboorlagadda !!

@JinwooHwang JinwooHwang merged commit b0b2dab into apache:develop Dec 13, 2025
14 of 15 checks passed
JinwooHwang added a commit that referenced this pull request Dec 13, 2025
#7972)

* Add explicit jakarta.annotation-api dependency to fix version conflict

jakarta.resource-api:2.1.0 declares a transitive dependency on
jakarta.annotation-api:2.1.0, but Spring Boot 3.3.4 (used by geode-gfsh)
requires jakarta.annotation-api:2.1.1. This causes Maven enforcer to
fail with a version conflict error.

By explicitly declaring jakarta.annotation-api as an api dependency
in geode-core, the published POM will include it with version 2.1.1
(from DependencyConstraints), which takes precedence over the
transitive 2.1.0 dependency from jakarta.resource-api.

Reported-by: Leon Finker

* Update expected POM to include jakarta.annotation-api dependency
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