-
Notifications
You must be signed in to change notification settings - Fork 66
/
build.gradle
77 lines (65 loc) · 2.12 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
plugins {
alias libs.plugins.android.application apply false
alias libs.plugins.android.library apply false
alias libs.plugins.jetbrains.kotlin.android apply false
alias libs.plugins.ksp apply false
alias libs.plugins.hilt apply false
alias libs.plugins.detekt
alias libs.plugins.dokka
alias libs.plugins.sonarqube
alias libs.plugins.jacoco
alias libs.plugins.binary.compatibility.validator
}
apply from: "config/gradle/dokkaRoot.gradle"
apply from: "config/gradle/sonarcloud.gradle"
apply from: "config/gradle/apiValidator.gradle"
ext {
checkoutRedirectScheme = "adyencheckout"
}
subprojects {
def javaVersion = 11
plugins.withType(com.android.build.gradle.BasePlugin).configureEach {
android {
if (project.hasProperty("strip-resources") && project.property("strip-resources") == "true") {
defaultConfig {
resConfigs "en", "xxhdpi"
}
buildTypes {
debug {
crunchPngs false
}
}
}
compileOptions {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
packagingOptions {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
merges += "META-INF/LICENSE.md"
merges += "META-INF/LICENSE-notice.md"
}
}
}
plugins.withType(com.android.build.gradle.LibraryPlugin).configureEach {
dependencies {
lintChecks project(':lint')
}
}
plugins.withType(org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper).configureEach {
kotlin {
jvmToolchain(javaVersion)
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += [
'-opt-in=kotlin.RequiresOptIn',
]
}
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
}
apply from: file('config/gradle/dependencyGraph.gradle')