-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (39 loc) · 1 KB
/
build.gradle
File metadata and controls
42 lines (39 loc) · 1 KB
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
/**
* 这是顶层的build.gradle文件的配置最终会被应用到所有子moudle中。
*/
/**
* buildscript:定义了 Android 编译工具的类路径。
*/
buildscript {
/**
* repositories中,jCenter是一个著名的 Maven 仓库。
*/
repositories {
jcenter()
mavenCentral()
}
/**
* 这是gradle的依赖
*/
dependencies {
/**
* 注意:不要把你的应用程序的依赖写到这里;他们应该在自己的模块build.gradle文件中配置
*/
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
}
}
/**
* allprojects:中定义的属性会被应用到所有 moudle 中,但是为了保证每个项目的独立性,我们一般不会在这里面操作太多共有的东西。
*/
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task hello {
println 'hello world'
}