springdoc-openapi-gradle-plugin icon indicating copy to clipboard operation
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.

Open pratikjain227 opened this issue 1 year ago • 1 comments

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 avatar Apr 09 '24 04:04 pratikjain227

@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")
}

kkocel avatar Apr 23 '24 13:04 kkocel

@pratikjain227,

Not reproducible.

bnasslahsen avatar Jun 22 '24 19:06 bnasslahsen