Skip to content

Commit

Permalink
Fix small services with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpaul committed Dec 11, 2023
1 parent c323e9e commit 1c91bfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
1 change: 0 additions & 1 deletion go/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
11 changes: 6 additions & 5 deletions python/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ services.find { it.id == 'payment' }.small = false
// Service renaming
Map<String, String> serviceNaming = project.ext.serviceNamingCamel
serviceNaming.putAll([
'binlookup': 'binlookup',
'payment' : 'payments',
'payout' : 'payouts'
'binlookup' : 'binlookup',
'payment' : 'payments',
'posterminalmanagement': 'terminal',
'payout' : 'payouts'
])

services.<Service> each { Service svc ->
Expand Down Expand Up @@ -56,8 +57,8 @@ services.<Service> 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")
}

Expand Down

0 comments on commit 1c91bfd

Please sign in to comment.