Skip to content

Remove provided deps from the target POM #2342

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 1 commit into from
Jul 13, 2022

Conversation

artembilan
Copy link
Member

Related to spring-projects/spring-framework#23486

We have this providedApi 'org.junit.platform:junit-platform-launcher'
where its version is resolved from mavenBom "org.junit:junit-bom:$junitJupiterVersion".
When we generate a Maven POM, this kind of dependency is present as an optional by default.
We previously have overridden this to the provided, but it comes without a version.

According to Spring Framework decision this kind of transitive dependencies are misleading.

  • Remove any provided deps in Gradle from the target POM altogether

Related to spring-projects/spring-framework#23486

We have this `providedApi 'org.junit.platform:junit-platform-launcher'`
where its `version` is resolved from `mavenBom "org.junit:junit-bom:$junitJupiterVersion"`.
When we generate a Maven POM, this kind of dependency is present as an `optional` by default.
We previously have overridden this to the `provided`, but it comes without a `version`.

According to Spring Framework decision this kind of transitive dependencies are misleading.

* Remove any `provided` deps in Gradle from the target POM altogether
@artembilan artembilan added this to the 3.0.0-M5 milestone Jul 11, 2022
@artembilan
Copy link
Member Author

/CC @benas

@artembilan artembilan requested a review from garyrussell July 12, 2022 20:24
fmbenhassine added a commit to spring-projects/spring-batch that referenced this pull request Jul 13, 2022
These tests are failing due to an invalid pom in
spring-kafka-test

Related issue: spring-projects/spring-kafka#2342
@garyrussell garyrussell merged commit 6d4cba5 into spring-projects:main Jul 13, 2022
fmbenhassine added a commit to spring-projects/spring-batch that referenced this pull request Jul 13, 2022
These tests were temporarily disabled, see 85a9cad.
Now that spring-projects/spring-kafka#2342
is fixed, these tests are re-enabled again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants