Mercurial > public > develkit
comparison init.gradle @ 128:c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
author | smith@nwoca.org |
---|---|
date | Tue, 04 Jun 2013 23:13:59 +0100 |
parents | b2532280341e |
children | bef2bfc61f6e |
comparison
equal
deleted
inserted
replaced
127:2a4ea22a6dd3 | 128:c93df17513f1 |
---|---|
11 | 11 |
12 def hostname | 12 def hostname |
13 try { hostname = "hostname".execute().text.toLowerCase().readLines().first() } catch (e) { hostname = 'unknown'} | 13 try { hostname = "hostname".execute().text.toLowerCase().readLines().first() } catch (e) { hostname = 'unknown'} |
14 | 14 |
15 gradle.ext.bambooBuild = System.getenv().any { it.key.startsWith('BAMBOO')} || hostname?.startsWith('ssdt-') | 15 gradle.ext.bambooBuild = System.getenv().any { it.key.startsWith('BAMBOO')} || hostname?.startsWith('ssdt-') |
16 | |
17 gradle.ext.bambooPlan = System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN' | |
18 | |
19 gradle.ext.hgRepositoryUrl = "" | |
20 try { | |
21 gradle.ext.hgRepositoryUrl = "hg path".execute().text.split('=')[1].trim() | |
22 } catch (e) {} | |
16 | 23 |
17 rootProject.ext.indyCapable = { | 24 rootProject.ext.indyCapable = { |
18 boolean capable = true | 25 boolean capable = true |
19 try { | 26 try { |
20 Class.forName('java.lang.invoke.MethodHandle') | 27 Class.forName('java.lang.invoke.MethodHandle') |