73
|
1
|
74
|
2 logger.debug("applying SSDT artifactory Gradle Settings")
|
73
|
3
|
|
4 gradle.addListener(new ArtifactoryGradleSettings())
|
|
5
|
|
6 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
|
|
7
|
|
8 def void projectsEvaluated(Gradle gradle) {
|
74
|
9
|
|
10
|
73
|
11 Project root = gradle.getRootProject()
|
|
12 root.allprojects {
|
74
|
13
|
|
14 configurations.all {
|
|
15 resolutionStrategy.cacheChangingModulesFor 120, 'minutes'
|
|
16 resolutionStrategy.cacheDynamicVersionsFor 120, 'minutes'
|
|
17 }
|
|
18
|
73
|
19 buildscript {
|
|
20 repositories {
|
|
21 mavenRepo name: 'plugins-repo', url: "http://repos.ssdt.nwoca.org/artifactory/gradle-plugins"
|
|
22 }
|
|
23 }
|
|
24
|
|
25 repositories {
|
74
|
26
|
|
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 }
|
73
|
44 mavenRepo name: 'ssdt-repo', url: 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo'
|
|
45 }
|
|
46 }
|
|
47 }
|
|
48 } |