changeset 246:9884456bea33

allow legacy projects to disable metrics entirely
author smith@nwoca.org
date Thu, 15 Jun 2017 18:14:03 +0100
parents df4f5bad8782
children ecae2b9a41d3
files init20.gradle
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/init20.gradle	Fri Feb 17 16:15:26 2017 +0000
+++ b/init20.gradle	Thu Jun 15 18:14:03 2017 +0100
@@ -133,7 +133,9 @@
     apply from: "${gradle.ssdtGradlekitLocation}/artifactory20.gradle"
 }
 
-apply from: "${gradle.ssdtDevelkitLocation}/metrics.gradle"
+if (!rootProject.hasProperty('disableMetrics')) {
+    apply from: "${gradle.ssdtDevelkitLocation}/metrics.gradle"
+}
 
 rootProject.afterEvaluate { r ->
     if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) {