Mercurial > public > develkit
diff init.gradle @ 137:cc3cd7da35a7
add projectId to environment based on bamboo id
author | smith@nwoca.org |
---|---|
date | Fri, 13 Sep 2013 17:09:17 +0100 |
parents | 9ce07c211984 |
children | 23e24ef3cd6b |
line wrap: on
line diff
--- a/init.gradle Mon Aug 12 20:09:49 2013 +0100 +++ b/init.gradle Fri Sep 13 17:09:17 2013 +0100 @@ -4,9 +4,10 @@ ant.property(file: System.getProperty('user.home') + "/.ssdt/private.properties") gradle.ext.ivyUserDir = ant.properties['ivy.default.ivy.user.dir'] ?: System.getProperty('user.home') + "/.ivy2" +gradle.ext.ssdtProjectId = System.getenv('bamboo_project_id') ?: 'default' + loadEnvironments() - gradle.addListener(new ArtifactoryGradleSettings()) def hostname @@ -17,6 +18,7 @@ gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-') logger.info "Bamboo plan: ${gradle.bambooPlan}" + gradle.ext.hgRepositoryUrl = "" try { gradle.ext.hgRepositoryUrl = "hg path".execute().text.split('=')[1].trim() @@ -68,6 +70,8 @@ apply from: "${gradle.ssdtDevelkitLocation}/metrics.gradle" +task wrapper(type: Wrapper) {} + rootProject.afterEvaluate { r -> if (r.plugins.hasPlugin(org.gradle.plugins.ide.idea.IdeaPlugin)) { @@ -308,6 +312,7 @@ def envCfg = slurper.parse(envFile.toURL()) envCfg.merge(slurper.parse(developerPrivate)) + envCfg.put('ssdt.projectid',gradle.ssdtProjectId) if (privateFile.exists()) { logger.info("loading private environment $privateFile") envCfg.merge(slurper.parse(privateFile.toURL()))