Build: Pass offline flag through to bwc build (#34367)

This commit makes the bwc build aware of the offline flag passed to the outer build.

closes #34361
This commit is contained in:
Ryan Ernst 2018-10-09 17:07:51 -04:00 committed by GitHub
parent d7a94fb6aa
commit 4b7257d971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,9 @@ subprojects {
} else {
executable new File(checkoutDir, 'gradlew').toString()
}
if (gradle.startParameter.isOffline()) {
args "--offline"
}
for (String dir : projectDirs) {
args ":${dir.replace('/', ':')}:assemble"
}