springdoc / springdoc-openapi-gradle-plugin

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

Task ':app:forkedSpringBootRun' uses this output of task ':app:inspectClassesForKotlinIC' without declaring an explicit or implicit dependency #109

Closed evgeniyrymko closed 1 year ago

evgeniyrymko commented 1 year ago

Hello! I have some problem with the plugin: I have decided to add springdoc.openapi-gradle-plugin to my Spring Boot 3 project to generate Open API v3 docs. By the way, when running the task ./gradlew clean generateOpenApiDocs I see the following output: `* What went wrong: Some problems were found with the configuration of task ':app:forkedSpringBootRun' (type 'JavaExecFork').

BUILD FAILED in 622ms 11 actionable tasks: 10 executed, 1 from cache`

I have tried different changes, but nothing works :( Maybe somebody can help?

I tried to add dependsOn in my build.gradle.kts file:

named("forkedSpringBootRun") { setDependsOn(listOf(jar, inspectClassesForKotlinIC)) }

but the output is * What went wrong: Task with name 'forkedSpringBootRun' not found in project ':app'.

Can you help me with that?

marcuscraske commented 1 year ago

Looks related to #102

bnasslahsen commented 1 year ago

closed as duplicate of #102