@@ -4,7 +4,7 @@ import java.text.SimpleDateFormat
4
4
import java.util.*
5
5
6
6
plugins {
7
- kotlin( " jvm " ) version " 2.1.0 "
7
+ alias(libs.plugins.kotlinJvm)
8
8
id(" maven-publish" )
9
9
id(" signing" )
10
10
id(" com.github.ben-manes.versions" ) version " 0.51.0"
@@ -19,67 +19,53 @@ repositories {
19
19
20
20
dependencies {
21
21
constraints {
22
- implementation(" org .slf4j:slf4j-api " ) {
22
+ implementation(libs .slf4j) {
23
23
version {
24
- strictly(" [1.7,3) " )
25
- prefer(" 2.0.16 " )
24
+ strictly(libs.versions.slf4jVersionrange.get() )
25
+ prefer(libs.versions.slf4j.get() )
26
26
}
27
27
}
28
- listOf (
29
- " org.jetbrains.kotlin:kotlin-reflect" ,
30
- " org.jetbrains.kotlin:kotlin-scripting-jvm" ,
31
- " org.jetbrains.kotlin:kotlin-stdlib" ,
32
- " org.jetbrains.kotlin:kotlin-stdlib-jdk7" ,
33
- " org.jetbrains.kotlin:kotlin-stdlib-jdk8" ,
34
- " org.jetbrains.kotlin:kotlin-stdlib-common" ,
35
- " org.jetbrains.kotlin:kotlin-test"
36
- ).forEach {
28
+ listOf (libs.bundles.kotlin).forEach {
37
29
implementation(it) {
38
30
version {
39
- strictly(" [1.6,3) " )
40
- prefer(" 2.1.0 " )
31
+ strictly(libs.versions.kotlinVersionrange.get() )
32
+ prefer(libs.versions.kotlin.get() )
41
33
}
42
34
}
43
35
}
44
- listOf (
45
- " com.squareup.moshi:moshi" ,
46
- " com.squareup.moshi:moshi-kotlin"
47
- ).forEach {
36
+ listOf (libs.bundles.moshi).forEach {
48
37
implementation(it) {
49
38
version {
50
- strictly(" [1.12.0,2) " )
51
- prefer(" 1.15.2 " )
39
+ strictly(libs.versions.moshiVersionrange.get() )
40
+ prefer(libs.versions.moshi.get() )
52
41
}
53
42
}
54
43
}
55
- listOf (
56
- " com.squareup.okio:okio" ,
57
- " com.squareup.okio:okio-jvm"
58
- ).forEach {
44
+ listOf (libs.bundles.okio).forEach {
59
45
implementation(it) {
60
46
version {
61
- strictly(" [3,4) " )
62
- prefer(" 3.9.1 " )
47
+ strictly(libs.versions.okioVersionrange.get() )
48
+ prefer(libs.versions.okio.get() )
63
49
}
64
50
}
65
51
}
66
52
}
67
- implementation(" org.jetbrains.kotlin:kotlin-stdlib:2.1.0 " )
68
- implementation(" org.jetbrains.kotlin:kotlin-reflect:2.1.0 " )
53
+ implementation(libs.kotlinStdlib )
54
+ implementation(libs.kotlinReflect )
69
55
70
56
implementation(" io.github.microutils:kotlin-logging:3.0.5" )
71
- implementation(" org .slf4j:slf4j-api:2.0.16 " )
72
- testRuntimeOnly(" ch.qos.logback:logback-classic:1.3.14 " )
57
+ implementation(libs .slf4j)
58
+ testRuntimeOnly(" ch.qos.logback:logback-classic:${libs.versions.logback.get()} " )
73
59
74
60
implementation(" org.yaml:snakeyaml:2.3" )
75
- implementation(" com.squareup. moshi:moshi:1.15.2 " )
76
- implementation(" com.squareup.moshi:moshi-kotlin:1.15.2 " )
61
+ implementation(libs. moshi)
62
+ implementation(libs.moshiKotlin )
77
63
testImplementation(" com.beust:klaxon:5.5" )
78
64
79
65
implementation(" com.google.re2j:re2j:1.8" )
80
66
// implementation("com.github.fge:json-schema-validator:2.2.6")
81
67
82
- testImplementation(" org.jetbrains.kotlin:kotlin-test-junit5:2.1.0 " )
68
+ testImplementation(" org.jetbrains.kotlin:kotlin-test-junit5:${libs.versions.kotlin.get()} " )
83
69
testImplementation(" io.kotest:kotest-runner-junit5:5.9.1" )
84
70
testRuntimeOnly(" org.junit.platform:junit-platform-launcher:1.11.4" )
85
71
}
@@ -92,8 +78,8 @@ val dependencyVersions = listOf(
92
78
)
93
79
94
80
val dependencyGroupVersions = mapOf (
95
- " org.junit.jupiter" to " 5.11.0 " ,
96
- " org.junit.platform" to " 1.11.0 " ,
81
+ " org.junit.jupiter" to libs.versions.junitJupiter.get() ,
82
+ " org.junit.platform" to libs.versions.junitPlatform.get() ,
97
83
)
98
84
99
85
configurations.all {
0 commit comments