-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (57 loc) · 1.64 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
71
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
ext {
androidSupportVersion = '25.3.+'
firebaseVersion = '10.2.+'
}
subprojects {
repositories {
jcenter()
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
targetSdkVersion 25
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dataBinding {
addDefaultAdapters false
enabled false
}
}
configurations.default {
exclude group: 'com.android.databinding'
exclude group: 'com.android.support'
}
configurations.androidTestCompile {
extendsFrom configurations.provided
exclude group: 'com.android.databinding', module: 'compiler'
}
conf2ScopeMappings.addMapping 200, configurations.compile, 'provided'
conf2ScopeMappings.addMapping 300, configurations.provided, 'provided'
dependencies {
provided "com.android.support:support-annotations:$project.androidSupportVersion"
testCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test:runner:0.5'
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}