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

stop the forked task after the generation of the OpenAPI spec #80

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

mr-july
Copy link
Contributor

@mr-july mr-july commented Jun 20, 2022

Currently, the forked task forkedSpringBootRun is not automatically terminated after the generation of the OpenAPI specification.

The problem description

I have a backend part of my application (REST interface), which is implemented with the aid of SpringBoot. The frontend part is just a Vue SPA, developed with the aid of Vite. The springdoc-openapi-gradle-plugin is used to generate the frontend code to communicate with the rest interface. So, the generation task is a dependency for the frontend development server. Currently, while the frontend development server is running the backend process is running too (because it is not automatically terminated), although the generation of the code is finished. In most cases it is not a problem, but if I need to start a backend in debug mode, it is impossible (because it is already started just normal for the code generation).

So, the PR solves this problem by terminating the forked process after the generation is finished. It was already the case before switching to gradle-execfork-plugin, thus the PR should be treated as a regression fix.

@bnasslahsen bnasslahsen merged commit 4d8ea8e into springdoc:master Aug 6, 2022
@bnasslahsen
Copy link
Contributor

Thank you @mr-july for your contribution to the project

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

Successfully merging this pull request may close these issues.

2 participants