-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (33 loc) · 1.12 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.diffplug.spotless) apply false
alias(libs.plugins.kotlin.parcelize) apply false
}
subprojects {
apply(plugin = "com.diffplug.spotless")
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlinGradle {
target("*.gradle.kts")
ktlint()
}
kotlin {
target ("**/*.kt")
targetExclude("$buildDir/**/*.kt")
targetExclude("bin/**/*.kt")
targetExclude("**/*.json")
trimTrailingWhitespace()
ktlint("0.49.0")
}
java {
target ("src/*/java/**/*.java")
targetExclude("$buildDir/**/*.java")
targetExclude("bin/**/*.java")
targetExclude("**/*.json")
trimTrailingWhitespace()
googleJavaFormat("1.11.0").aosp()
}
}
}