JustworksExtension
DSL extension for configuring the Justworks OpenAPI code generator.
Supports multiple named specs, each with independent configuration.
Usage in build.gradle.kts:
justworks {
specs {
register("petstore") {
specFile = file("api/petstore.yaml")
packageName = "com.example.petstore"
}
register("payments") {
specFile = file("api/payments.yaml")
packageName = "com.example.payments"
}
}
}Content copied to clipboard
Each registered spec generates to an isolated output directory and has its own generation task: justworksGenerate<Name>.