forked from arcus-smart-home/arcusandroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
81 lines (69 loc) · 1.79 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
apply from: 'common.gradle'
project.ext.shortVersion = "${version_major}.${version_minor}.${version_patch}"
project.ext.appVersionCode = "${version_major}${version_minor}${version_patch}" as Integer
buildscript {
apply from: 'dependencies.gradle'
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath deps.classpath.gradleTools
classpath deps.classpath.kotlin
classpath deps.classpath.ktlintPlugin
}
}
subprojects {
afterEvaluate {
def plugins = project.plugins
String library = "com.android.library"
String application = "com.android.application"
ktlint {
android = plugins.hasPlugin(library) || plugins.hasPlugin(application)
}
}
apply plugin: "org.jlleitschuh.gradle.ktlint"
ktlint {
version = "$ktlintVersion"
debug = false
verbose = true
outputToConsole = true
outputColorName = "RED"
ignoreFailures = false
disabledRules = [
]
filter {
exclude("**/generated/**")
}
}
}
allprojects {
if (Boolean.parseBoolean("${use_lint_checks}")) {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint"
}
}
}
// Plugins
repositories {
google()
jcenter()
if (Boolean.parseBoolean("${android_use_maven_local}")) {
mavenLocal()
}
}
// Dependencies
buildscript {
repositories {
google()
jcenter()
if (Boolean.parseBoolean("${android_use_maven_local}")) {
mavenLocal()
}
}
}
}