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

A bit more Gradle plugin docs, please? #38

Closed
hrstoyanov opened this issue Sep 24, 2022 · 3 comments
Closed

A bit more Gradle plugin docs, please? #38

hrstoyanov opened this issue Sep 24, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@hrstoyanov
Copy link

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 bnasslahsen transferred this issue from springdoc/springdoc-openapi Sep 29, 2022
@bnasslahsen
Copy link
Contributor

@hrstoyanov,

  • Why are you declaring so many dependencies ?
  • What are the spring-boot modules your project is using ?

@bnasslahsen bnasslahsen added the documentation Improvements or additions to documentation label Sep 29, 2022
@hrstoyanov
Copy link
Author

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
Copy link
Contributor

closed as no activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants