forked from LawnchairLauncher/lawnicons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (43 loc) · 1.66 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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep
plugins {
id("com.android.application") version "8.5.1" apply false
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.0.0"
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.0" apply false
id("com.google.devtools.ksp") version "2.0.0-1.0.24" 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> {
// Downgrade temporarily to make Compose previews work
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
}
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.4.8",
),
).editorConfigOverride(
mapOf(
"ktlint_compose_compositionlocal-allowlist" to "disabled",
),
)
}
kotlinGradle {
ktlint()
}
}
}