This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle
63 lines (50 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
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.vanniktech.code.quality.tools'
apply plugin: 'com.vanniktech.android.junit.jacoco'
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.4.0'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.4.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.1.0'
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.8'
}
}
codeQualityTools {
lint {
textReport = true
}
}
junitJacoco {
ignoreProjects = ['app'] // Don't care about sample
}
subprojects {
repositories {
jcenter()
}
plugins.apply('net.ltgt.errorprone')
}
ext {
minSdkVersion = 14
compileSdkVersion = 23
targetSdkVersion = 23
buildToolsVersion = '23.0.2'
supportLibraryVersion = '23.2.1'
leakCanaryVersion = '1.3.1'
versionCode = VERSION_CODE
versionName = VERSION_NAME
supportAppCompat = "com.android.support:appcompat-v7:$supportLibraryVersion"
leakCanaryDebug = "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
leakCanaryRelease = "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
javaVersion = JavaVersion.VERSION_1_7
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}