-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (45 loc) · 1.52 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
allprojects {
plugins.withId("io.gitlab.arturbosch.detekt") {
configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
source = files("src/main/kotlin")
}
}
}
subprojects {
if (displayName.contains("app").not() &&
displayName.contains("uikit-sandbox").not() &&
file("src").exists()
) {
with(pluginManager) {
apply("com.android.library")
apply("org.jetbrains.kotlin.android")
}
}
plugins.withId("com.android.library") {
configure<com.android.build.gradle.LibraryExtension> {
compileSdk = extra["compileSdk"].toString().toInt()
defaultConfig {
minSdk = extra["minSdk"].toString().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xexplicit-api=strict")
}
}
}
}
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.detekt) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlin.serialization) apply false
}
true // Needed to make the Suppress annotation work for the plugins block