Skip to content
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

Chore/javax dependency cleanup #204

Merged
merged 2 commits into from
Jun 5, 2023

Conversation

tvahrst
Copy link
Contributor

@tvahrst tvahrst commented Jun 5, 2023

This PR explicitly declares a io.swagger.core.v3:swagger-core-jakarta dependency instead of io.swagger.core.v3:swagger-core.
The latter one came transiently via swagger-inflector and is now excluded. This change allowed it to remove the dependency of javax.xml.bind:jaxb-api.

swagger-inflector also pulls transiently the 'older' io.swagger:swagger-core dependency (v1.6.9, other group-id, other package-names) which unfortunately cannot be excluded, because swagger-inflector needs some utility classes from this dependency (io.swagger.util.Json)

This necessary old swagger-core dependency has itself a dependency to javax.validation, which should not be part of the springwolf dependency tree because springwolf changed to SpringBoot 3.x and jakarta. So, the groupId javax.validation is explicitly excluded from the transient deps of swagger-inflector.

There was one usage of javax.validation.NotNull in AsyncAPI which seems to be accidently defined. This annotation was changed to lombok.NonNull (like all other methods in AsyncAPI)

@timonback
Copy link
Member

This is great. Thank you for digging through the dependencies (and fixing the left over NotNull import)

@timonback timonback merged commit 090ddd0 into springwolf:master Jun 5, 2023
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.

2 participants