Skip to content

feat: manage the swagger artifacts in the BOM - #3346

Merged
bnasslahsen merged 1 commit into
mainfrom
feat/3325-bom-swagger-artifacts
Sep 6, 2026
Merged

feat: manage the swagger artifacts in the BOM#3346
bnasslahsen merged 1 commit into
mainfrom
feat/3325-bom-swagger-artifacts

Conversation

@bnasslahsen

Copy link
Copy Markdown
Collaborator

Modules that only carry the swagger annotations had no way to pick up the version springdoc resolves elsewhere: importing the BOM copies its managed dependencies, not its properties.

swagger-annotations-jakarta, swagger-models-jakarta and swagger-core-jakarta are now managed by springdoc-openapi-bom. Its flattened form has to keep the properties for ${swagger-api.version} to be resolvable by the consumer, so flatten-maven-plugin switches from <properties>remove</properties> to <properties>expand</properties>.

Fixes #3325

Modules that only carry the swagger annotations had no way to pick up the
version springdoc resolves elsewhere: importing the BOM copies its managed
dependencies, not its properties. They are now managed by the BOM, whose
flattened form has to keep the properties for ${swagger-api.version} to be
resolvable by the consumer.

Fixes #3325

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bnasslahsen
bnasslahsen merged commit 5b813d5 into main Sep 6, 2026
1 check passed
@bnasslahsen
bnasslahsen deleted the feat/3325-bom-swagger-artifacts branch September 6, 2026 09:24
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.

Add swagger-annotations(-jakarta) to springdoc-openapi-bom for annotation-only consumers

1 participant