-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.71 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
import org.gradle.util.VersionNumber
buildscript {
ext {
KOTLIN_VERSION = '1.7.22'
ANDROID_GRADLE_VERSION = '4.1.3'
JUNIT_VERSION = '5.9.1'
QUALITY_TOOLS_VERSION = '0.22.0'
IS_IN_CI = 'true' == System.getenv('CI')
IS_CI_RELEASE = 'true' == System.getenv('IS_CI_RELEASE')
}
repositories {
mavenCentral()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath "com.android.tools.build:gradle:$ANDROID_GRADLE_VERSION"
classpath "com.vanniktech:gradle-code-quality-tools-plugin:$QUALITY_TOOLS_VERSION"
}
}
plugins {
id 'com.vanniktech.code.quality.tools' version "$QUALITY_TOOLS_VERSION"
id 'com.quittle.setup-android-sdk' version '2.1.0'
}
allprojects {
buildscript {
repositories {
mavenCentral()
google()
}
}
repositories {
google()
mavenCentral()
jcenter()
}
codeQualityTools {
htmlReports true
xmlReports false
detekt {
config = rootProject.file('config/detekt-config.yml')
}
ktlint {
final String hardcodedVersion = '0.40.0'
if (VersionNumber.parse(hardcodedVersion) > VersionNumber.parse(toolVersion)) {
toolVersion = hardcodedVersion
}
}
cpd {
enabled false
}
}
}
task subprojectDefaultTasks {
subprojects.each { subproject ->
subproject.afterEvaluate {
subproject.defaultTasks.each { task ->
dependsOn subproject.path+":"+task
}
}
}
}
defaultTasks 'subprojectDefaultTasks'