Skip to content

Commit

Permalink
Implement task inputs matching the Spring Boot task inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Jun 17, 2024
1 parent 9e726b3 commit dd53c4b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ open class OpenApiGradlePlugin : Plugin<Project> {
fork.onlyIf { needToFork(bootRunTask, customBootRun, fork) }
}

// This is my task. Before I can run it, I have to run the dependent tasks
val openApiTask =
tasks.named(OPEN_API_TASK_NAME, OpenApiGeneratorTask::class.java) {
// This is my task. Before I can run it, I have to run the dependent tasks
it.dependsOn(forkedSpringBoot)

// Ensure the task inputs match those of the original application
it.inputs.files(bootRunTask.get().inputs.files)
}

// The forked task need to be terminated as soon as my task is finished
Expand Down

0 comments on commit dd53c4b

Please sign in to comment.