Colton Idle
05/08/2021, 9:32 PM# build.gradle.kts
plugins { id("com.diffplug.spotless") }
// version and style are optional
spotless { kotlin { ktfmt('0.25').kotlinlangStyle() } }
but spotless docs say:
spotless { // if you are using build.gradle.kts, instead of 'spotless {' use:
// configure<com.diffplug.gradle.spotless.SpotlessExtension> {
...
So should it be spotless {
or configure<com.diffplug.gradle.spotless.SpotlessExtension> {
for kts files?
Are the spotless docs wrong/out of date? Or should the ktfmt website show the proper api for applying to a kts file?
(this is a super small detail but as someone that just felt like they jumped through a bunch of hoops to get this working with kts build files on Android, I want to make sure the docs are up to date) 😄Javier
05/09/2021, 4:13 AMColton Idle
05/09/2021, 4:58 PMJavier
05/09/2021, 6:09 PM