Skip to content

Commit

Permalink
chore: cleanup ktfmt version declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed May 17, 2022
1 parent bcf2f4f commit ac90825
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ plugins {
id("com.vanniktech.maven.publish")
}

val KTFMT_VERSION = "0.37"

mavenPublish {
sonatypeHost = null
}
mavenPublish { sonatypeHost = null }

publishing {
repositories {
Expand All @@ -35,13 +31,14 @@ publishing {
}

spotless {
val ktfmtVersion = "0.37"
kotlin {
ktfmt(KTFMT_VERSION).googleStyle()
ktfmt(ktfmtVersion).googleStyle()
target("**/*.kt")
targetExclude("**/build/")
}
kotlinGradle {
ktfmt(KTFMT_VERSION).googleStyle()
ktfmt(ktfmtVersion).googleStyle()
target("**/*.kts")
targetExclude("**/build/")
}
Expand Down

0 comments on commit ac90825

Please sign in to comment.