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

Update to 1.9.0 not possible #149

Open
schowave opened this issue Jul 4, 2024 · 2 comments
Open

Update to 1.9.0 not possible #149

schowave opened this issue Jul 4, 2024 · 2 comments

Comments

@schowave
Copy link

schowave commented Jul 4, 2024

Hey,
I want to update the springdoc-openapi-gradle-plugin to Version 1.9.0, but this is not possible because the generateOpenApiDocs does not work.

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name

With Version 1.8.0 this worked perfectly. My gradle configuration:

plugins {
    id("org.springdoc.openapi-gradle-plugin:1.8.0")
}

dependencies {
    implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0")
}

openApi {
    outputDir.set(layout.buildDirectory.dir("open-api"))
    outputFileName.set("api-docs.yaml")
    customBootRun {
        args = listOf("--spring.profiles.active=local")
    }
}

Furthermore in my renovate MR I see, that the adoption is 0%, are others also having issues here?
image

@schowave
Copy link
Author

schowave commented Jul 23, 2024

I managed to mitigate the problem by adding the following line to the customBootRun, as described here: #150 (comment)

customBootRun { workingDir.set(project.rootProject.projectDir) }

Then the update to 1.9.0 was possible.

@StemadsenCardlay
Copy link

Thank you! Version 1.9.0 contains a breaking change, they should have made it version 2.0.0.

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

2 participants