39 lines
1.2 KiB
Groovy
39 lines
1.2 KiB
Groovy
plugins {
|
|
id "org.openapi.generator" version "6.1.0"
|
|
}
|
|
|
|
task validate(type: org.openapitools.generator.gradle.plugin.tasks.ValidateTask){
|
|
inputSpec = "./garage/doc/api/garage-admin-v0.yml"
|
|
recommend = true
|
|
}
|
|
|
|
task buildPythonClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
|
|
generatorName = "python"
|
|
inputSpec = "./garage/doc/api/garage-admin-v0.yml"
|
|
outputDir = "$rootDir/python"
|
|
configOptions = [
|
|
packageName: "garage_admin_sdk",
|
|
packageVersion: "0.8.0",
|
|
projectName: "garage-admin-sdk"
|
|
]
|
|
}
|
|
|
|
task buildGoClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
|
|
generatorName = "go"
|
|
inputSpec = "./garage/doc/api/garage-admin-v0.yml"
|
|
outputDir = "$rootDir/golang"
|
|
configOptions = [
|
|
packageName: "garage",
|
|
packageVersion: "0.8.0",
|
|
]
|
|
}
|
|
|
|
task buildJavascriptClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
|
|
generatorName = "javascript"
|
|
inputSpec = "./garage/doc/api/garage-admin-v0.yml"
|
|
outputDir = "$rootDir/javascript"
|
|
configOptions = [
|
|
packageName: "garage",
|
|
packageVersion: "0.8.0",
|
|
]
|
|
}
|