forked from linkedin/databus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaultEnvironment.gradle
31 lines (29 loc) · 941 Bytes
/
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
repositories {
// for open source we cannot user internal repo
// so we add few open source ones
mavenCentral()
maven {
url "http:https://repo.fusesource.com/maven2"
}
maven {
url "http:https://maven.restlet.org"
}
// local repo for libs we have to ship with
def sandBoxRepo = "${project.rootDir}/sandbox-repo"
def sandBoxExists = new File(sandBoxRepo).isDirectory()
if (sandBoxExists) {
logger.debug "Adding repository $sandBoxRepo"
project.repositories.ivy {
name "sanboxRepo"
url sandBoxRepo
layout "pattern", {
artifact "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
ivy "[organisation]/[module]/[revision]/[module]-[revision].ivy"
m2compatible = true
}
}
} else {
logger.debug "Not adding repository $sandBoxRepo as the directory does not exist."
}
}
project.buildDir = new File(project.rootProject.buildDir, project.name)