mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +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,8 +23,8 @@ group = "dev.msfjarvis.claw"
|
|||
|
||||
version = "1.0"
|
||||
|
||||
allprojects {
|
||||
apply(plugin = "com.diffplug.spotless")
|
||||
|
||||
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
||||
kotlin {
|
||||
target("**/*.kt")
|
||||
|
@ -32,7 +32,7 @@ allprojects {
|
|||
ktfmt("0.28").googleStyle()
|
||||
}
|
||||
kotlinGradle {
|
||||
target("*.gradle.kts")
|
||||
target("**/*.gradle.kts")
|
||||
ktfmt("0.28").googleStyle()
|
||||
}
|
||||
format("xml") {
|
||||
|
@ -42,6 +42,8 @@ allprojects {
|
|||
.config(mapOf("parser" to "xml", "tabWidth" to 2))
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue