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

generateOpenApiDocs FAILED - Task ':forkedSpringBootStop' is not up-to-date because - Task has not declared any outputs despite executing actions. #143

Closed
pratikjain227 opened this issue Apr 9, 2024 · 2 comments

Comments

@pratikjain227
Copy link

pratikjain227 commented Apr 9, 2024

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 pratikjain227 changed the title generateOpenApiDocs FAILED - Unable to connect to http://localhost:8080/v3/api-docs waited for 30 seconds generateOpenApiDocs FAILED - Task ':forkedSpringBootStop' is not up-to-date because - Task has not declared any outputs despite executing actions. Apr 9, 2024
@kkocel
Copy link

kkocel commented Apr 23, 2024

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

@bnasslahsen
Copy link
Contributor

@pratikjain227,

Not reproducible.

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

3 participants