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-v1.yml" recommend = true } task buildPythonClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) { generatorName = "python" inputSpec = "./garage/doc/api/garage-admin-v1.yml" outputDir = "$rootDir/garage-admin-sdk-python" gitHost = "git.deuxfleurs.fr" gitUserId = "garage-sdk" gitRepoId = "garage-admin-sdk-python" configOptions = [ packageName: "garage_admin_sdk", packageVersion: "0.9.0", projectName: "garage-admin-sdk-python" ] } task buildGoClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) { generatorName = "go" inputSpec = "./garage/doc/api/garage-admin-v1.yml" outputDir = "$rootDir/garage-admin-sdk-golang" gitHost = "git.deuxfleurs.fr" gitUserId = "garage-sdk" gitRepoId = "garage-admin-sdk-golang" configOptions = [ packageName: "garage", packageVersion: "0.9.0" ] } task buildJavascriptClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) { generatorName = "javascript" inputSpec = "./garage/doc/api/garage-admin-v1.yml" outputDir = "$rootDir/garage-admin-sdk-js" gitHost = "git.deuxfleurs.fr" gitUserId = "garage-sdk" gitRepoId = "garage-admin-sdk-js" configOptions = [ packageName: "garage-admin-sdk-js", moduleName: "garage", npmName: "garage-admin-sdk-js", npmRepository: "@dxflrs/garage-admin-sdk-js", packageVersion: "0.9.0", usePromises: "true", ] }