-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (61 loc) · 1.76 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
classpath 'net.sf.proguard:proguard-gradle:5.3.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
configurations.classpath {
resolutionStrategy {
failOnVersionConflict()
force 'com.google.guava:guava:18.0'
force 'org.codehaus.plexus:plexus-utils:1.5.15'
force 'com.android.tools:annotations:25.3.3'
force 'org.apache.httpcomponents:httpclient:4.2.1'
force 'org.apache.httpcomponents:httpcore:4.2.1'
force 'commons-lang:commons-lang:2.4'
}
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
maven {
url 'https://dl.bintray.com/alexanderr/maven'
}
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force 'com.google.guava:guava:18.0'
force 'com.android.support:appcompat-v7:25.1.0'
}
}
}
subprojects {
ext {
uploadInitiated = gradle.startParameter.taskNames.contains('bintrayUpload')
}
}
if (!project.hasProperty('ndkProps')) {
ext.ndkProps = new Properties();
def propName = "$rootDir/local.properties"
def propFile = file(propName)
if (propFile.exists()) {
new FileInputStream(propFile).withStream { InputStream is ->
ndkProps.load(is)
}
} else {
ndkProps['ndk.dir'] = "$System.env.ANDROID_NDK/"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}