comparison init.gradle @ 165:0975c343fafe

change property filter for ivy.xml
author Dave Smith <smith@nwoca.org>
date Thu, 16 Jan 2014 20:07:52 +0000
parents 7474ff33a1ba
children 9947c2c8ff44
comparison
equal deleted inserted replaced
164:7474ff33a1ba 165:0975c343fafe
273 if(gradle.branchStream == 'feature') { 273 if(gradle.branchStream == 'feature') {
274 add(new org.apache.ivy.plugins.resolver.URLResolver()) { 274 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
275 name = 'ssdt-branches' 275 name = 'ssdt-branches'
276 m2compatible = false 276 m2compatible = false
277 def url = "${ssdtArtifactory}/ssdt-branches" 277 def url = "${ssdtArtifactory}/ssdt-branches"
278 def filter = URLEncoder.encode(";ssdt-branch.branchName+=${gradle.branchName.replaceAll('/','-')}") 278 def filter1 = ";ssdt-branch.branchName+=${gradle.branchName.replaceAll('/','-')}"
279 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]${filter}") 279 def filter2 = ";ssdt-branch.branchName=${gradle.branchName.replaceAll('/','-')}"
280 addIvyPattern("${url}${filter}/[organization]/[module]/ivy-[revision].xml") 280 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]${filter1}")
281 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml")
281 checkmodified = true 282 checkmodified = true
282 changingMatcher = 'regexp' 283 changingMatcher = 'regexp'
283 changingPattern = /\d{14}/ 284 changingPattern = /\d{14}/
284 } 285 }
285 } 286 }