Mercurial > public > develkit
comparison init20.gradle @ 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 |
comparison
equal
deleted
inserted
replaced
245:df4f5bad8782 | 246:9884456bea33 |
---|---|
131 gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip' | 131 gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip' |
132 logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" | 132 logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" |
133 apply from: "${gradle.ssdtGradlekitLocation}/artifactory20.gradle" | 133 apply from: "${gradle.ssdtGradlekitLocation}/artifactory20.gradle" |
134 } | 134 } |
135 | 135 |
136 apply from: "${gradle.ssdtDevelkitLocation}/metrics.gradle" | 136 if (!rootProject.hasProperty('disableMetrics')) { |
137 apply from: "${gradle.ssdtDevelkitLocation}/metrics.gradle" | |
138 } | |
137 | 139 |
138 rootProject.afterEvaluate { r -> | 140 rootProject.afterEvaluate { r -> |
139 if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) { | 141 if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) { |
140 gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') ) | 142 gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') ) |
141 } | 143 } |