Skip to content

Commit ac90825

Browse files
committed
chore: cleanup ktfmt version declaration
1 parent bcf2f4f commit ac90825

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

build.gradle.kts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ plugins {
1010
id("com.vanniktech.maven.publish")
1111
}
1212

13-
val KTFMT_VERSION = "0.37"
14-
15-
mavenPublish {
16-
sonatypeHost = null
17-
}
13+
mavenPublish { sonatypeHost = null }
1814

1915
publishing {
2016
repositories {
@@ -35,13 +31,14 @@ publishing {
3531
}
3632

3733
spotless {
34+
val ktfmtVersion = "0.37"
3835
kotlin {
39-
ktfmt(KTFMT_VERSION).googleStyle()
36+
ktfmt(ktfmtVersion).googleStyle()
4037
target("**/*.kt")
4138
targetExclude("**/build/")
4239
}
4340
kotlinGradle {
44-
ktfmt(KTFMT_VERSION).googleStyle()
41+
ktfmt(ktfmtVersion).googleStyle()
4542
target("**/*.kts")
4643
targetExclude("**/build/")
4744
}

0 commit comments

Comments
 (0)