comparison init.gradle @ 74:a622ec40a570

update repo definitions
author smith@nwoca.org
date Sat, 04 Feb 2012 16:24:38 -0500
parents 174b4bcfd2f2
children 02cc8e50945e
comparison
equal deleted inserted replaced
73:174b4bcfd2f2 74:a622ec40a570
1 1
2 logger.debug("Applying 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 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener { 6 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
7 7
8 def void projectsEvaluated(Gradle gradle) { 8 def void projectsEvaluated(Gradle gradle) {
9
10
9 Project root = gradle.getRootProject() 11 Project root = gradle.getRootProject()
10 root.allprojects { 12 root.allprojects {
11 println "applying repositories to $it" 13
14 configurations.all {
15 resolutionStrategy.cacheChangingModulesFor 120, 'minutes'
16 resolutionStrategy.cacheDynamicVersionsFor 120, 'minutes'
17 }
18
12 buildscript { 19 buildscript {
13 repositories { 20 repositories {
14 mavenRepo name: 'plugins-repo', url: "http://repos.ssdt.nwoca.org/artifactory/gradle-plugins" 21 mavenRepo name: 'plugins-repo', url: "http://repos.ssdt.nwoca.org/artifactory/gradle-plugins"
15 } 22 }
16 } 23 }
17 24
18 repositories { 25 repositories {
19 mavenRepo name: 'libs-snapshots', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots' 26
20 mavenRepo name: 'libs-releases', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-releases' 27 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
28 name = 'ssdt-snapshots'
29 m2compatible = true
30 url = 'http://repos.ssdt.nwoca.org/artifactory/ssdt-snapshots'
31 addArtifactPattern('http://repos.ssdt.nwoca.org/artifactory/ssdt-snapshots/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]')
32 addIvyPattern('http://repos.ssdt.nwoca.org/artifactory/ssdt-snapshots/[organization]/[module]/ivy-[revision].xml')
33 checkmodified = true
34 changingMatcher = 'regexp'
35 changingPattern = '.*SNAPSHOT'
36 }
37 add(new org.apache.ivy.plugins.resolver.URLResolver()) {
38 name = 'ssdt-releases'
39 m2compatible = false
40 url = 'http://repos.ssdt.nwoca.org/artifactory/ssdt-releases'
41 addArtifactPattern('http://repos.ssdt.nwoca.org/artifactory/ssdt-releases/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]')
42 addIvyPattern('http://repos.ssdt.nwoca.org/artifactory/ssdt-releases/[organization]/[module]/ivy-[revision].xml')
43 }
21 mavenRepo name: 'ssdt-repo', url: 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo' 44 mavenRepo name: 'ssdt-repo', url: 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo'
22 } 45 }
23 } 46 }
24 } 47 }
25 } 48 }