-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (31 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: 'buildConfigs/dependencies.gradle'
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
// apt 环境编译条件
// classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// classpath 'com.android.databinding:dataBinder:1.0-rc2'
// 这个是为了使用auto_value才写的
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.9'
//Java8 lambda表达式引用
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
// 仔细研究过这段task的人会了解一些很好玩的东西gradlew命令神马的~,还有可以更好的帮助你迁移代码,某些烦人的build文件~
task clean(type: Delete) {
delete project.buildDir
}