@@ -2,14 +2,14 @@ import org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN
22import java.util.Properties
33
44plugins {
5- kotlin( " jvm " ) version " 2.2.21 "
6- kotlin( " plugin.spring " ) version " 2.2.21 "
7- id( " org.springframework. boot" ) version " 3.5.7 "
8- id( " io. spring.dependency- management" ) version " 1.1.7 "
9- id( " dev.detekt " ) version ( " 2.0.0-alpha.1 " )
10- id( " org.jlleitschuh.gradle. ktlint" ) version " 14.0.1 "
11- id( " org.jetbrains.kotlinx. kover" ) version " 0.9.3 "
12- id( " com.github.ben-manes. versions" ) version " 0.53.0 "
5+ alias(libs.plugins.kotlin.jvm)
6+ alias(libs.plugins.kotlin.spring)
7+ alias(libs.plugins.spring. boot)
8+ alias(libs.plugins. spring.dependency. management)
9+ alias(libs.plugins.detekt )
10+ alias(libs.plugins. ktlint)
11+ alias(libs.plugins. kover)
12+ alias(libs.plugins. versions)
1313}
1414
1515group = " ch.srgssr.pillarbox"
@@ -26,23 +26,23 @@ repositories {
2626
2727dependencies {
2828 // Dependencies
29- implementation(" org.springframework .boot:spring-boot- starter- json" )
30- implementation(" com.fasterxml. jackson.module:jackson-module- kotlin" )
31- implementation(" org.jetbrains. kotlin:kotlin- reflect" )
32- implementation(" nl.basjes.parse.useragent: yauaa:7.32.0 " )
33- implementation(" org.jetbrains.kotlinx:kotlinx- coroutines- core" )
34- implementation(" io .ktor:ktor- client-core:3.3.2 " )
35- implementation(" io .ktor:ktor- client-cio:3.3.2 " )
29+ implementation(libs.spring .boot. starter. json)
30+ implementation(libs. jackson.module. kotlin)
31+ implementation(libs. kotlin. reflect)
32+ implementation(libs. yauaa)
33+ implementation(libs.kotlin. coroutines. core)
34+ implementation(libs .ktor. client.core )
35+ implementation(libs .ktor. client.cio )
3636
3737 // Test Dependencies
38- testImplementation(" io .kotest:kotest- runner-junit5:5.9.1 " )
39- testImplementation(" org.springframework .boot:spring-boot- starter- test" )
40- testImplementation(" io .kotest.extensions:kotest-extensions-spring:1.3.0 " )
41- testImplementation(" org.jetbrains. kotlin:kotlin- test- junit5" )
42- testImplementation(" io .mockk:mockk:1.14.6 " )
43- testImplementation(" com.squareup.okhttp3: mockwebserver:5.3.1 " )
44- testImplementation(" com.squareup.okhttp3: okhttp:5.3.1 " )
45- testRuntimeOnly(" org .junit.platform:junit-platform- launcher" )
38+ testImplementation(libs .kotest. runner.junit5 )
39+ testImplementation(libs.spring .boot. starter. test)
40+ testImplementation(libs .kotest.extensions.spring )
41+ testImplementation(libs. kotlin. test. junit5)
42+ testImplementation(libs .mockk)
43+ testImplementation(libs. mockwebserver)
44+ testImplementation(libs. okhttp)
45+ testRuntimeOnly(libs .junit.platform. launcher)
4646}
4747
4848kotlin {
@@ -52,14 +52,17 @@ kotlin {
5252}
5353
5454detekt {
55- toolVersion = " 2.0.0-alpha.1 "
55+ toolVersion = libs.versions.detekt.get()
5656 buildUponDefaultConfig = true
5757 allRules = false
5858 config.setFrom(" $projectDir /detekt.yml" )
5959}
6060
6161ktlint {
62- version.set(" 1.8.0" )
62+ version.set(
63+ libs.versions.ktlint.cli
64+ .get(),
65+ )
6366 debug.set(false )
6467 android.set(false )
6568 outputToConsole.set(true )
0 commit comments