comparison init.gradle @ 157:bf82d6ce853d

update to handle branch names for ivy files
author Dave Smith <smith@nwoca.org>
date Tue, 29 Oct 2013 18:25:29 +0100
parents 465c6cf6dff3
children 01c8e1e27d97
comparison
equal deleted inserted replaced
156:465c6cf6dff3 157:bf82d6ce853d
253 if(gradle.branchStream == 'feature') { 253 if(gradle.branchStream == 'feature') {
254 add(new org.apache.ivy.plugins.resolver.URLResolver()) { 254 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
255 name = 'ssdt-branches' 255 name = 'ssdt-branches'
256 m2compatible = false 256 m2compatible = false
257 def url = "${ssdtArtifactory}/ssdt-branches" 257 def url = "${ssdtArtifactory}/ssdt-branches"
258 def filter = ";ssdt-branch.branchName+=${gradle.branchName}" 258 def filter = ";ssdt-branch.branchName+=${gradle.branchName.replaceAll('/','-')}"
259 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]${filter}") 259 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]${filter}")
260 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml;${filter}") 260 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml")
261 checkmodified = true 261 checkmodified = true
262 changingMatcher = 'regexp' 262 changingMatcher = 'regexp'
263 changingPattern = /\d{14}/ 263 changingPattern = /\d{14}/
264 } 264 }
265 } 265 }