forked from LawnchairLauncher/lawnicons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (41 loc) · 1.54 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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep
plugins {
id("com.android.application") version "8.3.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.23" apply false
id("com.google.devtools.ksp") version "1.9.23-1.0.20" apply false
id("com.google.dagger.hilt.android") version "2.51.1" apply false
id("app.cash.licensee") version "1.11.0" apply false
id("com.diffplug.spotless") version "6.25.0" apply false
id("org.gradle.android.cache-fix") version "3.0.1" apply false
}
allprojects {
plugins.withType<JavaBasePlugin>().configureEach {
extensions.configure<JavaPluginExtension> {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
}
apply(plugin = "com.diffplug.spotless")
extensions.configure<SpotlessExtension> {
format("xml") {
target("app/assets/appfilter.xml")
eclipseWtp(EclipseWtpFormatterStep.XML).configFile("$rootDir/spotless.xml.prefs")
}
kotlin {
target("src/**/*.kt")
ktlint().customRuleSets(
listOf(
"io.nlopez.compose.rules:ktlint:0.3.15",
),
).editorConfigOverride(
mapOf(
"ktlint_compose_compositionlocal-allowlist" to "disabled",
),
)
}
kotlinGradle {
ktlint()
}
}
}