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

nflow-rest-api-common adds swagger annotations as transitive dependency #670

Open
ptorkko opened this issue Jan 20, 2025 · 0 comments
Open

Comments

@ptorkko
Copy link

ptorkko commented Jan 20, 2025

Given a gradle project like:

plugins {
    id 'io.freefair.lombok' version '8.11'
    id 'org.springframework.boot' version '3.4.1'
}

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(21)
    }
}

configurations {
    nflowExplorer
}

jar {
    enabled = false
}

dependencies {
    implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
    implementation(platform('org.springdoc:springdoc-openapi:2.8.3'))

    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-jetty'
    implementation 'org.springframework.boot:spring-boot-starter-actuator'

    // nflow
    implementation 'io.nflow:nflow-rest-api-spring-web:10.0.0'
    nflowExplorer 'io.nflow:nflow-explorer:[email protected]'

    // swagger
    implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui'

    ...
}

results in nflow-rest-api-common module including io.swagger.core.v3:swagger-annotations as a transitive dependency, requiring:

// nflow
implementation('io.nflow:nflow-rest-api-spring-web:10.0.0') {
    exclude group: 'io.swagger.core.v3', module: 'swagger-annotations'
}
nflowExplorer 'io.nflow:nflow-explorer:[email protected]'

I don't think these are a runtime requirement for this specific module (or the project as a whole?).

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

No branches or pull requests

1 participant