A bit more Gradle plugin docs, please?
hrstoyanov opened this issue · 3 comments
hrstoyanov commented
It is not very clear what kind of dependencies need to be:
- Implementation?
- developerOnly?
- runtimeOnly?
I am currently going with this:
dependencies {
...
//SpringDoc OpenAPI
def springDocVersion = '1.6.11'
implementation "org.springdoc:springdoc-openapi-ui:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-webmvc-core:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-webflux-ui:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-hateoas:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-data-rest:${springDocVersion}"
}but would prefer not include in the final jar things that are not needed at runtime.
bnasslahsen commented
- Why are you declaring so many dependencies ?
- What are the spring-boot modules your project is using ?
hrstoyanov commented
I threw in all dependencies for now, I will remove some of them later. Not sure what does this have to do with my question?
here is a samole of dependencies:
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.session:spring-session-core'
//SpringDoc OpenAPI
def springDocVersion = '1.6.11'
implementation "org.springdoc:springdoc-openapi-ui:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-webmvc-core:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-webflux-ui:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-hateoas:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-data-rest:${springDocVersion}"
//Other
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
bnasslahsen commented
closed as no activity