/
build.gradle
51 lines (47 loc) · 1.14 KB
/
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
49
50
ext {
isCi = "true".equals(System.getenv('CI'))
isSqCi = "true".equals(System.getenv('SQCI'))
rep = null
}
apply from: file("./dependencies.gradle")
if (rootProject.file("repositories.gradle").exists()) {
apply from: rootProject.file("repositories.gradle")
}
subprojects {
buildscript {
repositories {
mavenCentral()
jcenter()
if (rep != null) {
if (rep.maven) {
for (Map.Entry<String, String> repEntry : rep.maven) {
println(repEntry.value)
maven {
url repEntry.value
}
}
}
}
}
dependencies {
classpath dep.kotlinGradlePlugin
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.4.0'
}
}
repositories {
mavenCentral()
jcenter()
if (rep != null) {
if (rep.maven) {
for (Map.Entry<String, String> repEntry : rep.maven) {
println(repEntry.value)
maven {
url repEntry.value
}
}
}
}
}
}