Slackbot
07/28/2023, 9:12 AMJavi
07/28/2023, 9:21 AMTom Koptel
07/28/2023, 9:22 AMbuild.gradle.kts
files.Ben Stav
07/28/2023, 9:31 AMspotlessCheck
or spotlessApply
?
If the latter, I'm not sure how to go about doing that, since I don't think they accept any flags or configuration, like ./gradlew spotlessCheck path/to/file
would try to run the last one as a taskBen Stav
07/28/2023, 9:32 AMBen Stav
07/28/2023, 9:33 AMTom Koptel
07/28/2023, 9:36 AM:module:ktlintKotlinScriptFormat
The one will do the formatting of the .gradle.kts
script file for you.Javi
07/28/2023, 9:45 AMJavi
07/28/2023, 9:46 AMBen Stav
07/28/2023, 10:01 AMspotless {
kotlin {
ktfmt()
target("**/*.gradle.kts")
}
}
That also catches the bazillion subprojects, so no need to scratch my head on how to apply that plugin for all the subprojects, which is good
Thanks! It really was a case of just doing itJavi
07/28/2023, 10:13 AMJavi
07/28/2023, 10:14 AMBen Stav
07/28/2023, 10:23 AMtargetExclude("**/build/")
John
07/28/2023, 7:18 PM