comparison init20.gradle @ 176:e0865f323a60

correct layouts for ssdt repositories. remove ssdt-releases repo
author smith@nwoca.org
date Fri, 12 Dec 2014 22:16:28 +0000
parents c3b7af90d1e4
children 629ee17d6f39
comparison
equal deleted inserted replaced
175:c3b7af90d1e4 176:e0865f323a60
350 } 350 }
351 351
352 if (gradle.branchStream == 'feature') { 352 if (gradle.branchStream == 'feature') {
353 ivy { 353 ivy {
354 name = 'ssdt-branches' 354 name = 'ssdt-branches'
355 def url = "${ssdtArtifactory}/ssdt-branches" 355 url = "${ssdtArtifactory}/ssdt-branches"
356 artifactPattern "${url}/${gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" 356 artifactPattern "${gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
357 ivyPattern "${url}/${gradle.branchHash}/[organization]/[module]/ivy-[revision].xml" 357 ivyPattern "${gradle.branchHash}/[organization]/[module]/ivy-[revision].xml"
358 // m2compatible = false
359 // def filter1 = ";ssdt-branch.branchName+=${gradle.branchName.replaceAll('/', '-')}"
360 // def filter2 = ";ssdt-branch.branchName=${gradle.branchName.replaceAll('/', '-')}"
361 // checkmodified = true
362 // changingMatcher = 'regexp'
363 // changingPattern = '.*SNAPSHOT'
364 } 358 }
365 } 359 }
366 360
367 ivy { 361 ivy {
368 name = 'ssdt-snapshots' 362 name = 'ssdt-snapshots'
369 def url = "${ssdtArtifactory}/ssdt-snapshots" 363 url = "${ssdtArtifactory}/ssdt-snapshots"
370 artifactPattern "${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" 364 layout "pattern", {
371 artifactPattern "${url}/[organization]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" 365 artifact "[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
372 ivyPattern "${url}/[organization]/[module]/ivy-[revision].xml" 366 artifact "[organization]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
373 // checkmodified = true 367 ivy "[organization]/[module]/ivy-[revision].xml"
374 // m2compatible = true 368 m2compatible = true
375 // changingMatcher = 'regexp' 369 }
376 // changingPattern = '.*SNAPSHOT'
377 }
378
379 ivy {
380 name = 'ssdt-releases'
381 // m2compatible = false
382 def url = "${ssdtArtifactory}/ssdt-releases"
383 artifactPattern "${url}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
384 artifactPattern "${url}/[organization]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
385 ivyPattern("${url}/[organization]/[module]/ivy-[revision].xml")
386 } 370 }
387 371
388 maven { 372 maven {
389 name = 'ssdt-repository' 373 name = 'ssdt-repository'
390 url = "${ssdtArtifactory}/repository" 374 url = "${ssdtArtifactory}/repository"
391 } 375 }
392 376
393 377
394 } 378 }
395 379
396 if (thisProject.repositories.find { 380 if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) {
397 it.name == 'local'
398 } && thisProject.getTasksByName('uploadArchives', false)) {
399 uploadArchives { 381 uploadArchives {
400 repositories { 382 repositories {
401 add thisProject.repositories.local 383 add thisProject.repositories.local
402 } 384 }
403 } 385 }