garage-admin-sdk-generator/build.gradle

53 lines
1.7 KiB
Groovy
Raw Permalink Normal View History

2022-09-13 14:00:03 +00:00
plugins {
id "org.openapi.generator" version "6.1.0"
}
task validate(type: org.openapitools.generator.gradle.plugin.tasks.ValidateTask){
2023-11-22 17:31:40 +00:00
inputSpec = "./garage/doc/api/garage-admin-v1.yml"
2022-09-13 14:00:03 +00:00
recommend = true
}
task buildPythonClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
generatorName = "python"
2023-11-22 17:31:40 +00:00
inputSpec = "./garage/doc/api/garage-admin-v1.yml"
2022-11-13 13:24:06 +00:00
outputDir = "$rootDir/garage-admin-sdk-python"
2022-11-13 14:38:59 +00:00
gitHost = "git.deuxfleurs.fr"
gitUserId = "garage-sdk"
2022-11-13 14:38:59 +00:00
gitRepoId = "garage-admin-sdk-python"
2022-09-13 14:00:03 +00:00
configOptions = [
packageName: "garage_admin_sdk",
2023-11-22 17:49:08 +00:00
packageVersion: "0.9.0",
2022-11-13 14:38:59 +00:00
projectName: "garage-admin-sdk-python"
2022-09-13 14:00:03 +00:00
]
}
2022-11-12 22:34:18 +00:00
task buildGoClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
generatorName = "go"
2023-11-22 17:31:40 +00:00
inputSpec = "./garage/doc/api/garage-admin-v1.yml"
2022-11-13 13:24:06 +00:00
outputDir = "$rootDir/garage-admin-sdk-golang"
2022-11-13 14:38:59 +00:00
gitHost = "git.deuxfleurs.fr"
gitUserId = "garage-sdk"
2022-11-13 14:38:59 +00:00
gitRepoId = "garage-admin-sdk-golang"
2022-11-12 22:34:18 +00:00
configOptions = [
packageName: "garage",
2023-11-22 17:49:08 +00:00
packageVersion: "0.9.0"
2022-11-12 22:34:18 +00:00
]
}
2022-11-12 22:48:21 +00:00
task buildJavascriptClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
generatorName = "javascript"
2023-11-22 17:31:40 +00:00
inputSpec = "./garage/doc/api/garage-admin-v1.yml"
2022-11-13 13:24:06 +00:00
outputDir = "$rootDir/garage-admin-sdk-js"
2022-11-13 14:38:59 +00:00
gitHost = "git.deuxfleurs.fr"
gitUserId = "garage-sdk"
2022-11-13 14:38:59 +00:00
gitRepoId = "garage-admin-sdk-js"
2022-11-12 22:48:21 +00:00
configOptions = [
2022-11-13 13:24:06 +00:00
packageName: "garage-admin-sdk-js",
2022-11-12 22:50:53 +00:00
moduleName: "garage",
2022-11-13 13:24:06 +00:00
npmName: "garage-admin-sdk-js",
npmRepository: "@dxflrs/garage-admin-sdk-js",
2023-11-22 17:49:08 +00:00
packageVersion: "0.9.0",
2022-11-13 13:24:06 +00:00
usePromises: "true",
2022-11-12 22:48:21 +00:00
]
}