forked from JakeWharton/ViewPagerIndicator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (68 loc) · 2.29 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// Plugin versions
androidGradleVersion = "3.0.0-rc2"
errorProneGradleVersion = "0.0.13"
gradleVersionsVersion = "0.15.0"
}
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradleVersion"
classpath "net.ltgt.gradle:gradle-errorprone-plugin:$errorProneGradleVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$gradleVersionsVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
group "com.sprylab.android.viewpagerindicator"
version "2.4.1-sprylab-SNAPSHOT"
subprojects {
group project.parent.group
version project.parent.version
repositories {
google()
jcenter()
mavenCentral()
}
project.ext {
// Configuration
minSdk = 14
compileSdk = 26
targetSdk = 26
// Versions
libraryVersionName = project.version
libraryVersionCode = 2004001
// Dependencies - Test
junitVersion = "4.12"
robolectricVersion = "3.4.2"
// Dependencies - Runtime
supportLibVersion = "26.1.0"
errorProneVersion = "2.1.2"
}
// Configure java compiler for error prone
tasks.withType(JavaCompile) {
options.compilerArgs += ['-XDallowBetterNullChecks=false',
'-Xep:OvershadowingSubclassFields:ERROR',
'-Xep:MissingOverride:ERROR',
'-Xep:JavaLangClash:ERROR',
'-Xep:ClassCanBeStatic:ERROR',
'-Xep:MissingCasesInEnumSwitch:WARN',
'-Xep:CheckReturnValue:WARN',
'-Xep:RestrictTo:WARN',
'-Xep:TypeParameterUnusedInFormals:OFF'
]
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
distributionType = "all"
}