forked from frodoking/App-Architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (61 loc) · 1.82 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
62
63
64
65
66
67
68
69
70
task checkArguments {
try {
getProperty('EXIST_DEFAULT_ARGS')
} catch (Exception e) {
def log = "You should define some arguments in *.properties, like this :\n" +
"\n" +
"EXIST_DEFAULT_ARGS\n" +
"\n" +
"ANDROID_GRADLE_VERSION=2.2.0-alpha3\n" +
"COMPILE_SDK_VERSION=24\n" +
"BUILD_TOOLS_VERSION=24.0.0\n" +
"TARGET_SDK_VERSION=24\n" +
"MIN_SDK_VERSION=21\n" +
"SUPPORT_VERSION=24.0.0\n" +
"DEFAULT_ENCODING=UTF-8"
throw new NullPointerException(log)
}
}
checkArguments
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:${ANDROID_GRADLE_VERSION}"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}
apply from: "${rootProject.rootDir}/scripts/dependencyDefinitions.gradle"
apply from: "${rootProject.rootDir}/scripts/variants.gradle"
// See http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html.
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
subprojects { project ->
repositories {
jcenter()
mavenCentral()
maven {
url getProperty('LOCAL_REPOSITORY_URL')
}
maven {
url getProperty('SNAPSHOT_REPOSITORY_URL')
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
task clean(type: Delete) {
delete rootProject.buildDir
}