springdoc-openapi-gradle-plugin icon indicating copy to clipboard operation
springdoc-openapi-gradle-plugin copied to clipboard

Update to 1.9.0 not possible

Open schowave opened this issue 1 year ago • 2 comments

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 avatar Jul 04 '24 06:07 schowave

I managed to mitigate the problem by adding the following line to the customBootRun, as described here: https://github.com/springdoc/springdoc-openapi-gradle-plugin/issues/150#issuecomment-2235972725

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

Then the update to 1.9.0 was possible.

schowave avatar Jul 23 '24 06:07 schowave

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

StemadsenCardlay avatar Nov 14 '24 17:11 StemadsenCardlay