Mercurial > public > develkit
comparison init.gradle @ 77:e9605748e5ce
disable local publish for bamboo builds
author | smith@nwoca.org |
---|---|
date | Mon, 06 Feb 2012 15:27:43 -0500 |
parents | 15a5fd89d80b |
children | e47f80ef056b |
comparison
equal
deleted
inserted
replaced
76:15a5fd89d80b | 77:e9605748e5ce |
---|---|
1 | 1 |
2 logger.debug("applying SSDT artifactory Gradle Settings") | 2 logger.debug("applying SSDT artifactory Gradle Settings") |
3 | 3 |
4 gradle.addListener(new ArtifactoryGradleSettings()) | 4 gradle.addListener(new ArtifactoryGradleSettings()) |
5 | 5 |
6 println "Environment: " | 6 gradle.bambooBuild = System.getenv().any { it.key.startsWith('BAMBOO')} |
7 println "----------------------------" | 7 logger.info "bamboo build: $gradle.bambooBuild" |
8 System.getenv().each { k,v -> println " $k = $v" } | |
9 | 8 |
10 subprojects { | 9 subprojects { |
11 | 10 |
12 task cleanLocal << { | 11 task cleanLocal << { |
13 def local = project.repositories.find { it.name == 'local' } | 12 def local = project.repositories.find { it.name == 'local' } |
40 } | 39 } |
41 } | 40 } |
42 | 41 |
43 repositories { | 42 repositories { |
44 | 43 |
45 flatDir { | 44 if (!gradle.bambooBuild) { |
46 name "local" | 45 flatDir { |
47 dirs System.properties['user.home'] + "/.ssdt/local-repo" | 46 name "local" |
48 } | 47 dirs System.properties['user.home'] + "/.ssdt/local-repo" |
48 } | |
49 } | |
49 | 50 |
50 add(new org.apache.ivy.plugins.resolver.URLResolver()) { | 51 add(new org.apache.ivy.plugins.resolver.URLResolver()) { |
51 name = 'ssdt-snapshots' | 52 name = 'ssdt-snapshots' |
52 m2compatible = true | 53 m2compatible = true |
53 url = 'http://repos.ssdt.nwoca.org/artifactory/ssdt-snapshots' | 54 url = 'http://repos.ssdt.nwoca.org/artifactory/ssdt-snapshots' |