-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
51 lines (45 loc) · 1.62 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.8'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
apply plugin: 'android-sdk-manager'
apply plugin: 'com.github.ben-manes.versions'
allprojects {
repositories {
jcenter()
mavenCentral()
}
ext.androidTest = [
'org.objenesis:objenesis:2.1',
'com.google.dexmaker:dexmaker-mockito:1.2',
'org.mockito:mockito-core:2.0.4-beta',
'org.hamcrest:hamcrest-core:1.3',
'org.hamcrest:hamcrest-integration:1.3',
'org.hamcrest:hamcrest-library:1.3'
]
ext.unitTest = [
'junit:junit:4.12',
'org.mockito:mockito-core:2.0.4-beta',
'org.hamcrest:hamcrest-junit:2.0.0.0'
]
}
// http://tools.android.com/tech-docs/new-build-system/tips
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}