Forum Discussion
joejoyce I think swagger core project is what I am looking for. But I need some more help about this.
In the Where to start section, it says -
since version 2.0.5, swagger-core project also provides maven and gradle plugins to resolve an OpenAPI definition at build time. As these are based on the same resolving and configuration mechanisms, most information in the wiki applies also in this case.
I have added the swagger-core Gradle plugin in the id section and other dependencies in the Jakarta namespace in dependencies.
Now if my code is annotated, should I see the swagger-ui directly when I run my project or I need to configure swagger-ui in my main method?
joejoyce hugomario I am trying to user swagger-core-gradle-plugin. But I am confused about 1 thing - whether I need to specify jakarta artifact. I have set my gradle plugin as follows:
id "io.swagger.core.v3.swagger-gradle-plugin" version "2.1.9"
But since I am using Jetty 11 which works with jakarta namespace only, do I need to set buildClasspath = classpath so that my gradle dependencies will refer to jakarta based builds? If I use the plugin with suffix `jakarta`, that does not seem to have fetching the packages. Can someone please help?
Related Content
- 4 years ago
Recent Discussions
- 7 days ago
- 7 days ago
- 24 days ago