-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Java 9 same Package 'org.springdoc.api' exported by 'springdoc.openapi.core' and 'springdoc.openapi.common' Modules #461
Comments
The project is not based on java 9 modules. |
Are you willing to accept PR to make it compatible with java 9? (so, not based on java 9 modules, but just making sure it also works on java 9 modules): which mainly means making sure you have unique package names, and change some access modifiers accordingly |
I have just renamed, some the packages of the other modules, in order to be unique. |
Thx for the swift response! Now I managed to get springdoc running on the module-path in a spring boot application! There was one issue left I had to work around: webjars-locator also has a split package. I excluded the transitive webjars-locator from the springdoc dependency and I added webjars-locator-core in my pom. webjars-locator only contains 1 class: RequireJS, which springdoc doesn't use. Do you consider to also depend on webjars-locator-core instead of webjars-locator? Shall I make a PR? Spring boot depends on the classes in webjars-locator-core, so that will still work! I also created an issue in the webjars-locator project: webjars/webjars-locator#4 |
The change is now available on master to use webjars-locator-core instead of webjars-locator. Please, feel free to add any complementary PR, to improve the support for java 9. |
Describe the bug
When trying to modularize the application I get the following error because of openapi dependencie:
java.lang.module.ResolutionException: Modules springdoc.openapi.core and springdoc.openapi.common export package org.springdoc.api to module spring.boot
Currently using the dependency:
Expected behavior
Packages exported by each Module should be unique, so maybe rename the exported package in one of the modules?
The text was updated successfully, but these errors were encountered: