comparison init.gradle @ 99:333e489c1188

add ivy artifact by name pattern
author smith@nwoca.org
date Tue, 06 Mar 2012 22:09:24 +0000
parents 8c578d146476
children 44c4cb9d0fed
comparison
equal deleted inserted replaced
98:8c578d146476 99:333e489c1188
70 add(new org.apache.ivy.plugins.resolver.URLResolver()) { 70 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
71 name = 'ssdt-snapshots' 71 name = 'ssdt-snapshots'
72 m2compatible = true 72 m2compatible = true
73 url = "${ssdtArtifactory}/ssdt-snapshots" 73 url = "${ssdtArtifactory}/ssdt-snapshots"
74 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]") 74 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]")
75 addArtifactPattern("${url}/[organization]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]")
75 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml") 76 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml")
76 checkmodified = true 77 checkmodified = true
77 changingMatcher = 'regexp' 78 changingMatcher = 'regexp'
78 changingPattern = '.*SNAPSHOT' 79 changingPattern = '.*SNAPSHOT'
79 } 80 }
80 add(new org.apache.ivy.plugins.resolver.URLResolver()) { 81 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
81 name = 'ssdt-releases' 82 name = 'ssdt-releases'
82 m2compatible = false 83 m2compatible = false
83 url = "${ssdtArtifactory}/ssdt-releases" 84 url = "${ssdtArtifactory}/ssdt-releases"
84 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]") 85 addArtifactPattern("${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]")
86 addArtifactPattern("${url}/[organization]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]")
85 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml") 87 addIvyPattern("${url}/[organization]/[module]/ivy-[revision].xml")
86 } 88 }
87 mavenRepo name: 'ssdt-repo', url: "${ssdtArtifactory}/ssdt-repo" 89 mavenRepo name: 'ssdt-repo', url: "${ssdtArtifactory}/ssdt-repo"
88 90
89 } 91 }
125 def environments = [] 127 def environments = []
126 file('.').eachFileMatch(~/^environment.*\.groovy$/) { envFile -> 128 file('.').eachFileMatch(~/^environment.*\.groovy$/) { envFile ->
127 def envName = envFile.name - '.groovy' 129 def envName = envFile.name - '.groovy'
128 logger.info("loading environment $envFile.name") 130 logger.info("loading environment $envFile.name")
129 def envCfg = slurper.parse(envFile.toURL()) 131 def envCfg = slurper.parse(envFile.toURL())
132 envCfg.merge(slurper.parse(developerPrivate))
130 environment.merge(envCfg) 133 environment.merge(envCfg)
131 if (envName != 'environment' ) { setProperty envName,envCfg } 134 if (envName != 'environment' ) {
132 environments << envName 135 setProperty envName,envCfg
136 environments << envName
137 }
133 } 138 }
134 environment.merge(slurper.parse(developerPrivate)) 139 environment.merge(slurper.parse(developerPrivate))
135 // environment['environment'] = environment 140 environments << 'environment'
136 setProperty 'environment', environment 141 setProperty 'environment', environment
137 setProperty 'environments', environments 142 setProperty 'environments', environments
138 } 143 }