# HG changeset patch # User smith@nwoca.org # Date 1328560063 18000 # Node ID e9605748e5cec44692e190da562a8dece1e12c01 # Parent 15a5fd89d80b1d5019fe7f53324568486352732f disable local publish for bamboo builds diff -r 15a5fd89d80b -r e9605748e5ce init.gradle --- a/init.gradle Mon Feb 06 14:19:18 2012 -0500 +++ b/init.gradle Mon Feb 06 15:27:43 2012 -0500 @@ -3,9 +3,8 @@ gradle.addListener(new ArtifactoryGradleSettings()) -println "Environment: " -println "----------------------------" -System.getenv().each { k,v -> println " $k = $v" } +gradle.bambooBuild = System.getenv().any { it.key.startsWith('BAMBOO')} +logger.info "bamboo build: $gradle.bambooBuild" subprojects { @@ -42,10 +41,12 @@ repositories { - flatDir { - name "local" - dirs System.properties['user.home'] + "/.ssdt/local-repo" - } + if (!gradle.bambooBuild) { + flatDir { + name "local" + dirs System.properties['user.home'] + "/.ssdt/local-repo" + } + } add(new org.apache.ivy.plugins.resolver.URLResolver()) { name = 'ssdt-snapshots'