forked from LawnchairLauncher/lawnicons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
40 lines (37 loc) · 1.38 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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep
plugins {
id("com.android.application") version "8.1.2" apply false
id("com.android.library") version "8.1.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.10" apply false
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10" apply false
id("com.google.devtools.ksp") version "1.9.10-1.0.13" apply false
id("com.google.dagger.hilt.android") version "2.48.1" apply false
id("app.cash.licensee") version "1.8.0" apply false
id("com.diffplug.spotless") version "6.22.0" apply false
id("org.gradle.android.cache-fix") version "2.8.1" apply false
}
allprojects {
plugins.withType<JavaBasePlugin>().configureEach {
extensions.configure<JavaPluginExtension> {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
}
apply(plugin = "com.diffplug.spotless")
extensions.configure<SpotlessExtension> {
format("xml") {
eclipseWtp(EclipseWtpFormatterStep.XML).configFile("$rootDir/spotless.xml.prefs")
target("app/assets/appfilter.xml")
}
kotlin {
ktlint("1.0.1")
target("src/**/*.kt")
}
kotlinGradle {
ktlint("1.0.1")
target("*.kts")
}
}
}