-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
36 lines (31 loc) · 1.09 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("com.android.application") version libs.versions.agp apply false
id("com.android.library") version libs.versions.agp apply false
id("org.jetbrains.kotlin.android") version "1.9.24" apply false
id("com.google.protobuf") version "0.9.4" apply false
id("org.jmailen.kotlinter") version "4.1.1" apply true
id("org.jetbrains.dokka") version "1.9.10" apply false
alias(libs.plugins.androidx.benchmark) apply false
}
tasks.withType<KotlinCompile> {
dependsOn("installKotlinterPrePushHook")
}
subprojects {
apply(plugin = "org.jmailen.kotlinter")
afterEvaluate {
if (tasks.names.contains("formatKotlinMain")) {
tasks.named<SourceTask>("formatKotlinMain") {
exclude {
it.file.path.contains("generated/")
}
}
tasks.named<SourceTask>("lintKotlinMain") {
exclude {
it.file.path.contains("generated/")
}
}
}
}
}