-
Notifications
You must be signed in to change notification settings - Fork 169
/
build.gradle
82 lines (69 loc) · 2.25 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
72
73
74
75
76
77
78
79
80
81
82
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'io.fabric.tools:gradle:1.22.0'
classpath 'com.github.triplet.gradle:play-publisher:1.2.0-beta1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
classpath 'org.ajoberstar:grgit:1.4.1'
}
}
apply plugin: 'com.github.ben-manes.versions'
allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
task checkstyle(type: Checkstyle) {
showViolations = true
configFile file("../settings/checkstyle.xml")
source 'src/main/java'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
ci = "true".equals(System.getenv("CI"))
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
// Manifest version information!
versionMajor = 2
versionMinor = 7
versionPatch = 1
versionBuild = 1 // bump for dogfood builds, public betas, etc.
versionCode = versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
versionName = "${versionMajor}.${versionMinor}.${versionPatch}"
// Sdk and tools
minSdkVersion = 16
targetSdkVersion = 21
compileSdkVersion = 25
buildToolsVersion = '25.0.3'
// App dependencies
supportLibraryVersion = '25.3.1'
playServicesVersion = '9.6.1'
butterKnifeVersion = '8.8.1'
jodaTimeAndroidVersion = '2.9.5.1'
jodaTimeVersion = '2.9.7'
leakCanaryVersion = '1.5.4'
okHttpVersion = '3.9.0'
retrofitVersion = '2.3.0'
timberVersion = '4.5.1'
//test dependencies
junitVersion = '4.12'
mockitoVersion = '1.10.19'
hamcrestVersion = '1.3'
robolectricVersion = '3.1.4'
runnerVersion = '0.5'
rulesVersion = '0.5'
espressoVersion = '2.2.2'
}