-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
45 lines (40 loc) · 1.48 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// butterknife
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// retrolambda (https://github.com/evant/gradle-retrolambda)
classpath "me.tatarka:gradle-retrolambda:${GRADLE_RETROLAMBDA_VERSION}"
// 使用java8语法报错解决方法(https://github.com/evant/gradle-retrolambda/issues/96)
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
classpath "org.greenrobot:greendao-gradle-plugin:${GREENDAO_VERSION}" // add plugin
}
// Exclude the version that the android plugin depends on.
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
maven {
url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
}
}
}
ext {
minSdkVersion = MIN_SDK_VERSION.toInteger()
targetSdkVersion = TARGET_SDK_VERSION.toInteger()
compileSdkVersion = COMPILE_SDK_VERSION.toInteger()
buildToolsVersion = "${BUILD_TOOLS_VERSION}"
javaVersion = JavaVersion.VERSION_1_7
javaVersion_retrolambda = JavaVersion.VERSION_1_8
}
task clean(type: Delete) {
delete rootProject.buildDir
}