@@ -4,9 +4,9 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
4
4
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5
5
6
6
plugins {
7
- kotlin( " jvm" )
8
- id( " com.ncorti .ktfmt.gradle " ) version " 0.24.0 "
9
- id( " com.diffplug .spotless" ) version " 7.2.1 "
7
+ alias(libs.plugins.kotlin. jvm)
8
+ alias(libs.plugins .ktfmt)
9
+ alias(libs.plugins .spotless)
10
10
jacoco
11
11
`maven- publish`
12
12
signing
18
18
withJavadocJar()
19
19
}
20
20
21
- jacoco { toolVersion = " 0.8.13 " }
21
+ jacoco { toolVersion = libs.versions.jacoco.get() }
22
22
23
23
tasks.withType<Jar >().configureEach {
24
24
isPreserveFileTimestamps = false
@@ -34,11 +34,11 @@ tasks.withType<KotlinCompile> {
34
34
}
35
35
36
36
dependencies {
37
- testImplementation(platform(" io .kotest:kotest-bom:5.9.1 " ))
38
- testImplementation(" io .kotest:kotest- runner- junit5" )
39
- testImplementation(" io .kotest:kotest- assertions- core" )
40
- testImplementation(platform(" org .junit:junit-bom:5.13.4 " ))
41
- testImplementation(" org .junit.jupiter:junit-jupiter " )
37
+ testImplementation(platform(libs .kotest.bom ))
38
+ testImplementation(libs .kotest. runner. junit5)
39
+ testImplementation(libs .kotest. assertions. core)
40
+ testImplementation(platform(libs .junit.bom ))
41
+ testImplementation(libs .junit.jupiter)
42
42
}
43
43
44
44
tasks.test {
@@ -65,7 +65,7 @@ ktfmt { kotlinLangStyle() }
65
65
66
66
spotless {
67
67
java {
68
- googleJavaFormat(" 1.22.0 " ) // pick a version you like
68
+ googleJavaFormat(libs.versions.googleJavaFormat.get() ) // pick a version you like
69
69
target(" src/**/*.java" )
70
70
}
71
71
}
0 commit comments