As of 3.2.18/3.3.6/3.4.0, optional dependencies won't be published in pom.xml anymore #2262
Labels
type/chores
A task not related to code (build, formatting, process, ...)
Milestone
Motivation
While originally a side effect of removing problematic dependency plugin (see #2151), we discussed this with the team and took some insight from the Spring Framework and Spring Boot teams and decided that we'd stop publishing optional dependencies to the pom.
For now we won't advertise a
feature
in Gradle either. Note the only candidate would be metrics (with the optional dependency to micrometer).For more context, see spring-projects/spring-framework#23234
Desired solution
The optional entries are effectively already out of the pom. The
MavenPublication.withXml()
is currently no-op, and should be replaced with a comment pointing to this issue for context.Considered alternatives
If we were to re-introduce optional-marked dependencies in the generated Maven pom, the following block of code should be used in
MavenPublication.withXml()
in the Gradle build:The text was updated successfully, but these errors were encountered: