Skip to content

Commit

Permalink
Merge pull request #35 from Adyen/go-keep-webhook-handler
Browse files Browse the repository at this point in the history
Go generation: keep webhook_handler.go
  • Loading branch information
DjoykeAbyah authored Nov 12, 2024
2 parents 41cb64a + 6e2bb7d commit a0f9db0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ services.findAll { it.name.endsWith('Webhooks') }.each { Service svc ->
tasks.named("generate${svc.name}", GenerateTask) { packageName.set(singular) }
tasks.named("deploy${svc.name}", Copy) {
def targetDir = layout.projectDirectory.dir("repo/src/${singular}")
delete targetDir // Drop content first
// Drop content first (except webhook_handler.go)
targetDir.asFile.listFiles().each { file ->
if (file.name != 'webhook_handler.go') {
file.delete()
}
}
into targetDir // Copy models
}
}
Expand Down

0 comments on commit a0f9db0

Please sign in to comment.