springdoc / springdoc.github.io

Library for OpenAPI 3 with spring-boot
https://springdoc.org
Apache License 2.0
9 stars 42 forks source link

A bit more Gradle plugin docs, please? #38

Closed hrstoyanov closed 1 year ago

hrstoyanov commented 2 years ago

It is not very clear what kind of dependencies need to be:

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 1 year ago

@hrstoyanov,

hrstoyanov commented 1 year ago

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 1 year ago

closed as no activity