annotate init.gradle @ 74:a622ec40a570

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