Skip to content

Commit

Permalink
Migrate to Spotless from ktlint-gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroyer committed Oct 24, 2024
1 parent aa64ece commit 3b32d64
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
`java-gradle-plugin`
`kotlin-dsl`
id("com.gradle.plugin-publish") version "1.2.1"
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
id("com.diffplug.spotless") version "6.25.0"
id("com.android.lint") version "7.4.2"
id("org.nosphere.gradle.github.actions") version "1.4.0"
}
Expand Down Expand Up @@ -163,10 +163,13 @@ publishing {
}
}

ktlint {
version.set("0.49.1")
enableExperimentalRules.set(true)
outputToConsole.set(true)
spotless {
kotlinGradle {
ktlint("0.49.1")
}
kotlin {
ktlint("0.49.1")
}
}

fun cmd(vararg cmdarray: String) =
Expand Down

0 comments on commit 3b32d64

Please sign in to comment.