forked from linkedin/databus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultEnvironment.gradle
38 lines (36 loc) · 1.58 KB
/
defaultEnvironment.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
subprojects {
repositories {
if (System.getProperty('open_source') != null) {
// for open source we cannot user internal repo
// so we add few open source ones
mavenCentral()
maven {
url "http://repo.fusesource.com/maven2"
}
maven {
url "http://maven.restlet.org"
}
// local repo for libs we have to ship with
add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) {
name = 'SANDBOX_REPO'
ivypattern = "${project.rootProject.rootDir}/sandbox-repo/[organisation]/[module]/[revision]/[module]-[revision].ivy"
artpattern = "${project.rootProject.rootDir}/sandbox-repo/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
//println "ADDING $name repository. ivypatern=" + ivypattern
//println "ADDING $name repository. artifactorypatern=" + artpattern
addIvyPattern ivypattern
addArtifactPattern artpattern
m2compatible = true
checkmodified = true
changingPattern = '.*'
}
} else {
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'release'
addIvyPattern 'http://artifactory.corp.linkedin.com:8081/artifactory/release/[organisation]/[module]/[revision]/[module]-[revision].ivy'
addArtifactPattern 'http://artifactory.corp.linkedin.com:8081/artifactory/release/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'
m2compatible = true
}
}
}
project.buildDir = new File(project.rootProject.buildDir, project.name)
}