-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
37 lines (33 loc) · 998 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
allprojects {
ext {
isEnvCi = System.getenv('ENV_CI')
buildToolsVersion = isEnvCi ? "22.0.1" : "25.0.0"
repoProvider = {
if (!isEnvCi) {
maven { url "file:///c:/repo" }
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
repositories repoProvider
buildscript {
repositories repoProvider
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.github.znyang:library-analysis:0.2.2-rc1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.51"
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
distributionUrl = 'http://services.gradle.org/distributions/gradle-4.1-all.zip'
}
task clean(type: Delete) {
delete rootProject.buildDir
}