Skip to content

Commit

Permalink
Merge pull request #80 from mr-july/stop_forked_task
Browse files Browse the repository at this point in the history
stop the forked task after the generation of the OpenAPI spec
  • Loading branch information
bnasslahsen committed Aug 6, 2022
2 parents d37f32f + 261fc38 commit 4d8ea8e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ open class OpenApiGradlePlugin : Plugin<Project> {
) { openApiGenTask ->
openApiGenTask.dependsOn(forkedSpringBoot)
}

// The forked task need to be terminated as soon as my task is finished
forkedSpringBoot.get().stopAfter = project.tasks.named(OPEN_API_TASK_NAME)
}
}
}

0 comments on commit 4d8ea8e

Please sign in to comment.