-
-
Notifications
You must be signed in to change notification settings - Fork 553
Description
Is your feature request related to a problem? Please describe.
We're using Maven to build our projects. We're also using spring-boot-starter-parent as our parent pom. Once we import your springdoc-openapi with type pom and scope import, you're overwriting versions from spring-boot-starter-parent. We've noticed this problem today as we wanted to upgrade Spring Boot to 3.4.4, but the newest version of SpringDoc (2.8.5) is still using Spring Boot 3.4.2.
In the end, even though we were starting from Spring Boot 3.4.4, we were getting dependencies from Spring Boot 3.4.2, which are incompatible. For example, instead of Spring Framework 6.2.5, we were getting 6.2.2.
Describe the solution you'd like
Please include in your BOM only versions for JARs you're providing. Everything else should be our responsibility. Of course, it would be nice if you've kept an information in release notes that your version X is compatible with Spring Boot version Y, so that the users would know what to expect. Any deviations in versions would then be responsibility of those users.
Describe alternatives you've considered
For now I had to do two things:
- Apart from using
spring-boot-starter-parentas parent pom for our project, we had to import, again,spring-boot-dependenciesindependencyManagementsection. - Move
springdoc-openapito the bottom ofdependencyManagementso that versions of all other libraries are already set before Maven gets to SpringDoc dependencies.