@@ -7,6 +7,7 @@ import com.github.jk1.license.task.ReportTask
7
7
import com.google.cloud.tools.jib.api.buildplan.ImageFormat.OCI
8
8
import com.google.cloud.tools.jib.gradle.JibExtension
9
9
import io.gitlab.arturbosch.detekt.Detekt
10
+ import kotlinx.kover.gradle.plugin.dsl.KoverProjectExtension
10
11
import org.apache.tools.ant.filters.ReplaceTokens
11
12
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
12
13
import org.gradle.api.tasks.testing.logging.TestLogEvent
@@ -32,16 +33,16 @@ buildscript {
32
33
}
33
34
34
35
plugins {
35
- val kotlinVersion = " 1.9.23 "
36
+ val kotlinVersion = " 2.0.21 "
36
37
kotlin(" jvm" ) version kotlinVersion
37
38
kotlin(" plugin.spring" ) version kotlinVersion apply false
38
39
id(" pl.allegro.tech.build.axion-release" ) version " 1.18.18"
39
40
id(" com.diffplug.spotless" ) version " 7.0.2"
40
- id(" org.springframework.boot" ) version " 3.4.1 " apply false
41
+ id(" org.springframework.boot" ) version " 3.4.4 " apply false
41
42
id(" project-report" )
42
43
id(" org.owasp.dependencycheck" ) version " 12.1.0"
43
44
id(" com.github.jk1.dependency-license-report" ) version " 2.9"
44
- id(" org.jetbrains.kotlinx.kover" ) version " 0.7.4 "
45
+ id(" org.jetbrains.kotlinx.kover" ) version " 0.9.1 "
45
46
id(" io.gitlab.arturbosch.detekt" ) version " 1.23.8"
46
47
id(" org.openapi.generator" ) version " 7.10.0" apply false
47
48
id(" com.google.cloud.tools.jib" ) version " 3.4.5" apply false
@@ -65,7 +66,7 @@ val cosmotechApiCommonVersion = "2.1.0-SNAPSHOT"
65
66
val jedisVersion = " 4.4.6"
66
67
val springOauthVersion = " 6.4.2"
67
68
val redisOmSpringVersion = " 0.9.7"
68
- val kotlinCoroutinesCoreVersion = " 1.8.1 "
69
+ val kotlinCoroutinesCoreVersion = " 1.10.2 "
69
70
val kotlinCoroutinesTestVersion = " 1.7.3"
70
71
val oktaSpringBootVersion = " 3.0.7"
71
72
val springDocVersion = " 2.8.6"
@@ -83,7 +84,7 @@ val commonCompressVersion = "1.27.1"
83
84
val awsSpringVersion = " 3.1.1"
84
85
85
86
// Checks
86
- val detektVersion = " 1.23.7 "
87
+ val detektVersion = " 1.23.8 "
87
88
88
89
// Tests
89
90
val jUnitBomVersion = " 5.10.0"
@@ -139,7 +140,7 @@ allprojects {
139
140
sourceCompatibility = JavaVersion .VERSION_21
140
141
toolchain { languageVersion.set(JavaLanguageVersion .of(kotlinJvmTarget)) }
141
142
}
142
- configurations { all { resolutionStrategy { force(" com.redis.om:redis-om-spring:0.9.1 " ) } } }
143
+ configurations { all { resolutionStrategy { force(" com.redis.om:redis-om-spring:0.9.10 " ) } } }
143
144
144
145
repositories {
145
146
maven {
@@ -271,6 +272,8 @@ subprojects {
271
272
}
272
273
273
274
dependencies {
275
+ // https://youtrack.jetbrains.com/issue/KT-71057/POM-file-unusable-after-upgrading-to-2.0.20-from-2.0.10
276
+ implementation(platform(" org.jetbrains.kotlin:kotlin-bom:2.0.21" ))
274
277
detekt(" io.gitlab.arturbosch.detekt:detekt-cli:$detektVersion " )
275
278
detekt(" io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion " )
276
279
detektPlugins(" io.gitlab.arturbosch.detekt:detekt-rules-libraries:$detektVersion " )
@@ -304,9 +307,7 @@ subprojects {
304
307
implementation(" com.okta.spring:okta-spring-boot-starter:${oktaSpringBootVersion} " )
305
308
306
309
implementation(" org.apache.commons:commons-csv:$commonsCsvVersion " )
307
- implementation(" com.redis.om:redis-om-spring:${redisOmSpringVersion} " ) {
308
- constraints { implementation(" ai.djl:api:0.28.0" ) }
309
- }
310
+ implementation(" com.redis.om:redis-om-spring:${redisOmSpringVersion} " )
310
311
implementation(" org.springframework.data:spring-data-redis" )
311
312
implementation(" org.springframework:spring-jdbc" )
312
313
implementation(" org.postgresql:postgresql" )
@@ -616,16 +617,23 @@ val copySubProjectsDetektReportsTasks =
616
617
617
618
tasks.getByName(" detekt" ) { shouldRunAfter(* copySubProjectsDetektReportsTasks.toTypedArray()) }
618
619
619
- extensions.configure< kotlinx.kover.gradle.plugin.dsl.KoverReportExtension > {
620
- defaults {
621
- // reports configs for XML, HTML, verify reports
620
+ extensions.configure<KoverProjectExtension >(" kover" ) {
621
+ reports {
622
+ filters {
623
+ excludes {
624
+ projects { cosmotechApi }
625
+ classes(" com.cosmotech.Application*" )
626
+ classes(" com.cosmotech.*.api.*" )
627
+ classes(" com.cosmotech.*.domain.*" )
628
+ }
629
+ }
622
630
}
623
- filters {
624
- excludes {
625
- projects { excludes { cosmotechApi } }
626
- classes( " com.cosmotech.Application* " )
627
- classes( " com.cosmotech.*.api.* " )
628
- classes( " com.cosmotech.*.domain.* " )
631
+ }
632
+
633
+ kover {
634
+ reports {
635
+ total {
636
+ // reports configs for XML, HTML, verify reports
629
637
}
630
638
}
631
639
}
0 commit comments