Skip to content

Commit 0aa9e1a

Browse files
Merge pull request #6 from runningcode/no/disable-okbuck
Disable okbuck plugin by default when not in use.
2 parents 0174842 + faa765f commit 0aa9e1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mobile_app1/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ buildScan {
2727
termsOfServiceAgree = 'yes'
2828
link 'GitHub', 'https://github.com/uber-common/android-build-eval'
2929
}
30-
apply plugin: 'com.uber.okbuck'
30+
// Only apply the okbuck Gradle plugin when generating the wrapper and BUCK files.
31+
if ((providers.systemProperty('okbuck.wrapper').forUseAtConfigurationTime().orNull ?: 'false').toBoolean()) {
32+
apply plugin: 'com.uber.okbuck'
33+
}

0 commit comments

Comments
 (0)