mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
build: configure Spotless at top-level only
This commit is contained in:
parent
03b4e2496a
commit
80fec48ec9
1 changed files with 20 additions and 18 deletions
|
@ -23,25 +23,27 @@ group = "dev.msfjarvis.claw"
|
|||
|
||||
version = "1.0"
|
||||
|
||||
apply(plugin = "com.diffplug.spotless")
|
||||
|
||||
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
||||
kotlin {
|
||||
target("**/*.kt")
|
||||
targetExclude("**/build/**")
|
||||
ktfmt("0.28").googleStyle()
|
||||
}
|
||||
kotlinGradle {
|
||||
target("**/*.gradle.kts")
|
||||
ktfmt("0.28").googleStyle()
|
||||
}
|
||||
format("xml") {
|
||||
target("**/*.xml")
|
||||
targetExclude("**/build/**", ".idea/**")
|
||||
prettier(mapOf("prettier" to "2.0.5", "@prettier/plugin-xml" to "0.13.0"))
|
||||
.config(mapOf("parser" to "xml", "tabWidth" to 2))
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply(plugin = "com.diffplug.spotless")
|
||||
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
||||
kotlin {
|
||||
target("**/*.kt")
|
||||
targetExclude("**/build/**")
|
||||
ktfmt("0.28").googleStyle()
|
||||
}
|
||||
kotlinGradle {
|
||||
target("*.gradle.kts")
|
||||
ktfmt("0.28").googleStyle()
|
||||
}
|
||||
format("xml") {
|
||||
target("**/*.xml")
|
||||
targetExclude("**/build/**", ".idea/**")
|
||||
prettier(mapOf("prettier" to "2.0.5", "@prettier/plugin-xml" to "0.13.0"))
|
||||
.config(mapOf("parser" to "xml", "tabWidth" to 2))
|
||||
}
|
||||
}
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue