-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
63 lines (53 loc) · 1.68 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
//
// Check for outdated dependencies
// https://github.com/ben-manes/gradle-versions-plugin
// ./gradlew dependencyUpdates -Drevision=release
apply plugin: 'com.github.ben-manes.versions'
buildscript {
apply from: rootProject.file('dependencies.gradle')
repositories {
jcenter()
google()
}
dependencies {
classpath gradlePlugins.android
classpath gradlePlugins.kotlin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
//
// Check for outdated dependencies
// https://github.com/ben-manes/gradle-versions-plugin
classpath gradlePlugins.versions
// Keepsafe DexCount
classpath gradlePlugins.dexcount
}
}
allprojects {
apply from: rootProject.file('functions.gradle')
repositories {
jcenter()
google()
maven { url "https://jitpack.io" }
}
plugins.apply('checkstyle')
checkstyle {
toolVersion = '8.7'
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.allWarningsAsErrors = true
}
task('checkstyle', type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}
}
ext {
travisBuild = System.getenv("TRAVIS") == "true"
// allows for -Dpre-dex=false to be set
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
}