Skip to content

Commit

Permalink
Merge pull request #276 from boudicca-events/abl/cleanup-before-gener…
Browse files Browse the repository at this point in the history
…ation

delete all generated files before generation
  • Loading branch information
kadhonn authored Feb 1, 2024
2 parents 82376ae + 3c61449 commit 55371a4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ dependencies {

val openApiPackageName = project.name.substring(0, project.name.lastIndexOf("-"))
tasks.register<GenerateTask>("generateJavaClient") {
doFirst {
delete(layout.buildDirectory.dir("generated/java").get())
}
inputs.files(openapi)
inputSpec.set(getInputSpecProvider())
outputDir.set(layout.buildDirectory.dir("generated/java").get().toString())
Expand All @@ -43,6 +46,9 @@ tasks.register<GenerateTask>("generateJavaClient") {
}

tasks.register<GenerateTask>("generateTypescriptClient") {
doFirst {
delete(layout.buildDirectory.dir("generated/typescript").get())
}
inputs.files(openapi)
inputSpec.set(getInputSpecProvider())
outputDir.set(layout.buildDirectory.dir("generated/typescript").get().toString())
Expand Down

0 comments on commit 55371a4

Please sign in to comment.