Skip to content

Commit 261fc38

Browse files
committed
stop the forked task after all
1 parent 610b0e1 commit 261fc38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGradlePlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ open class OpenApiGradlePlugin : Plugin<Project> {
6666
) { openApiGenTask ->
6767
openApiGenTask.dependsOn(forkedSpringBoot)
6868
}
69+
70+
// The forked task need to be terminated as soon as my task is finished
71+
forkedSpringBoot.get().stopAfter = project.tasks.named(OPEN_API_TASK_NAME)
6972
}
7073
}
7174
}

0 commit comments

Comments
 (0)