-
Notifications
You must be signed in to change notification settings - Fork 103
/
build.gradle
49 lines (41 loc) · 924 Bytes
/
build.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
39
40
41
42
43
44
45
46
47
48
ext {
developerMachines = ['adrian']
activeRepos = {
if (developerMachines.contains(System.getenv('USER'))) {
maven { url 'http://localhost:8081/artifactory/repo' }
} else {
mavenCentral()
}
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
jcenter()
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.adrianbk:gradle-jvmsrc-plugin:0.6.1"
}
}
apply from: "$rootDir/gradle/dependencies.gradle"
allprojects {
buildscript {
repositories {
configure(activeRepos)
}
}
repositories {
configure(activeRepos)
}
}
subprojects {
apply plugin: 'com.github.adrianbk.jvmsrc'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 10, 'seconds'
}
}