forked from MrWu94/AndroidNote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (49 loc) · 1.61 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
51
52
53
54
55
56
57
58
59
60
61
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from:"buildconfig.gradle"
buildscript {
repositories {
jcenter()
//这里是 LeanCloud 的包仓库
maven {
url "http://mvn.leancloud.cn/nexus/content/repositories/public"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.antfortune.freeline:gradle:0.8.2'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath 'com.mogujie.gradle:tinyPicPlugin:1.1.4'
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.1'
classpath "net.rdrei.android.buildtimetracker:gradle-plugin:0.9.+"
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
//这里是 LeanCloud 的包仓库
maven {
url "http://mvn.leancloud.cn/nexus/content/repositories/public"
}
}
//全局设定编码
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
// 全局配置
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
defaultTasks 'clean','build'
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
compileSdkVersion = 25
buildToolsVersion="25.0.0"
}