Skip to content

Commit

Permalink
Fix gcloud download
Browse files Browse the repository at this point in the history
  • Loading branch information
jianglai committed Mar 1, 2024
1 parent 57eef97 commit a009285
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ def javadocSource = []
def javadocClasspath = []
def javadocDependentTasks = []

def services = [':services:default',
':services:backend',
':services:bsa',
':services:tools',
':services:pubapi']

subprojects {
// Skip no-op project
if (project.name == 'services') return
Expand Down Expand Up @@ -365,12 +371,6 @@ subprojects {
}
}

def services = [':services:default',
':services:backend',
':services:bsa',
':services:tools',
':services:pubapi']

// Set up all of the deployment projects.
if (services.contains(project.path)) {

Expand Down Expand Up @@ -422,6 +422,13 @@ subprojects {
}
}

// Force SDK download to be sequential, otherwise parallel tasks will try to
// write to the same location to upgrade gcloud and fail.
for (int i = 1; i < services.size(); i++) {
project("${services[i]}").downloadCloudSdk
.dependsOn(project("${services[i - 1]}").downloadCloudSdk)
}

// If "-P verboseTestOutput=true" is passed in, configure all subprojects to dump all of their
// output and final test status (pass/fail, errors) for each test class.
//
Expand Down

0 comments on commit a009285

Please sign in to comment.