From 1c91bfd891ffdfc908c34cd558a5dd2bcd038acb Mon Sep 17 00:00:00 2001 From: michaelpa Date: Mon, 11 Dec 2023 18:23:27 +0100 Subject: [PATCH] Fix small services with tags --- .../groovy/adyen.sdk-automation-conventions.gradle | 1 + go/build.gradle | 1 - python/build.gradle | 11 ++++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/buildSrc/src/main/groovy/adyen.sdk-automation-conventions.gradle b/buildSrc/src/main/groovy/adyen.sdk-automation-conventions.gradle index 2a2bcba..477346b 100644 --- a/buildSrc/src/main/groovy/adyen.sdk-automation-conventions.gradle +++ b/buildSrc/src/main/groovy/adyen.sdk-automation-conventions.gradle @@ -165,6 +165,7 @@ project.ext.smallServices.each { Service svc -> group 'specs' description "Remove tags from ${svc.name}" dependsOn ':specs' + // The `removeTags` setting only works in isolation (e.g. CI). Locally, specs are shared between all projects. onlyIf { project.ext.removeTags } doLast { def specFile = file("$rootDir/schema/json/${svc.filename}") diff --git a/go/build.gradle b/go/build.gradle index f796dfe..6e2baaf 100644 --- a/go/build.gradle +++ b/go/build.gradle @@ -8,7 +8,6 @@ project.ext { generator = 'go' templates = 'templates/custom' configFile = 'templates/config.yaml' - // This setting works in isolation (e.g. CI). Specs are shared and other projects remove tags. removeTags = false } diff --git a/python/build.gradle b/python/build.gradle index 3725739..5bd997d 100644 --- a/python/build.gradle +++ b/python/build.gradle @@ -15,9 +15,10 @@ services.find { it.id == 'payment' }.small = false // Service renaming Map serviceNaming = project.ext.serviceNamingCamel serviceNaming.putAll([ - 'binlookup': 'binlookup', - 'payment' : 'payments', - 'payout' : 'payouts' + 'binlookup' : 'binlookup', + 'payment' : 'payments', + 'posterminalmanagement': 'terminal', + 'payout' : 'payouts' ]) services. each { Service svc -> @@ -56,8 +57,8 @@ services. each { Service svc -> outputs.upToDateWhen { false } onlyIf { svc.small } - from layout.buildDirectory.file("services/$svc.id/openapi_client/api/default_api-small.py") - rename 'default_api-small.py', "${serviceName}.py" + from layout.buildDirectory.file("services/$svc.id/openapi_client/api/general_api-small.py") + rename 'general_api-small.py', "${serviceName}.py" into layout.projectDirectory.dir("repo/Adyen/services") }