springdoc-openapi-gradle-plugin
springdoc-openapi-gradle-plugin copied to clipboard
generateOpenApiDocs FAILED - Task ':forkedSpringBootStop' is not up-to-date because - Task has not declared any outputs despite executing actions.
Trying to run on gitlab ci but running into the below issue, works fine locally.
:generateOpenApiDocs (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 4.139 secs.
:forkedSpringBootStop (Thread[Execution worker for ':' Thread 8,5,main]) started.
> Task :forkedSpringBootStop
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generateOpenApiDocs'.
> java.net.NoRouteToHostException: No route to host (Host unreachable)
* Try:
> Run with --stacktrace option to get the stack trace.
Caching disabled for task ':forkedSpringBootStop' because:
Caching has not been enabled for the task
Task ':forkedSpringBootStop' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Stopping JavaExecFork_Decorated task forkedSpringBootRun
:forkedSpringBootStop (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 0.001 secs.
Any help is appreciated. Also, if there can be working samples with the build it will help a large bunch of audience.
@pratikjain227 have you configured how open api should connect to your local Spring Boot app?
my config:
openApi {
outputDir.set(file("$projectDir/docs"))
apiDocsUrl.set("http://localhost:8080/v3/api-docs.yaml")
outputFileName.set("openapi.yaml")
}
@pratikjain227,
Not reproducible.