[Feature]: Provide a BOM module for managing dependencies (#4966) #4987
+133
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Thank you for contributing to swagger-core!
Description
Adds a Maven BOM module to centralize and align versions of Swagger Core artifacts.
Helps avoid version drift and resolve dependency conflicts in multi-module and complex projects.
Also documents BOM usage with an import snippet and example dependencies.
Fixes: #4966
Changes
modules/swagger-bom/pom.xml
pom.xml:404
README.md:150
Usage
Import the BOM in your project’s
dependencyManagement
section and omit versions on Swagger dependencies:See README.md:150 for the complete snippet and examples.
Compatibility
✅ Non-breaking — no code or API changes.
🔧 Pure build/dependency-management improvement.
Notes
The BOM currently manages the javax-based artifacts:
swagger-annotations
,swagger-models
,swagger-core
,swagger-integration
,swagger-jaxrs2
,swagger-jaxrs2-servlet-initializer
,swagger-jaxrs2-servlet-initializer-v2
,swagger-java17-support
Follow-up: if useful, a parallel Jakarta BOM (e.g.,
swagger-bom-jakarta
) can be added.Type of Change
Checklist
✅ Ready for review — introduces
swagger-bom
for consistent dependency alignment across Swagger Core modules.