garage-admin-sdk-generator/build.gradle

20 lines
572 B
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.7.3",
projectName: "garage-admin-sdk"
]
}