1
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3
3
4
plugins {
4
- id(" org.springframework.boot" ) version " 3.2.5 "
5
- id(" io.spring.dependency-management" ) version " 1.1.4 "
6
- id(" org.owasp.dependencycheck" ) version " 9.1 .0"
7
- kotlin(" jvm" ) version " 1.9.23 "
8
- kotlin(" plugin.spring" ) version " 1.9.23 "
5
+ id(" org.springframework.boot" ) version " 3.3.0 "
6
+ id(" io.spring.dependency-management" ) version " 1.1.5 "
7
+ id(" org.owasp.dependencycheck" ) version " 9.2 .0"
8
+ kotlin(" jvm" ) version " 2.0.0 "
9
+ kotlin(" plugin.spring" ) version " 2.0.0 "
9
10
}
10
11
11
12
group = " hu.bme.sch"
@@ -35,7 +36,7 @@ dependencies {
35
36
api(" org.springframework.retry:spring-retry" )
36
37
api(" org.springframework.boot:spring-boot-starter-aop" )
37
38
api(" com.fasterxml.jackson.module:jackson-module-kotlin" )
38
- api(" com.itextpdf:itext-core:8.0.3 " )
39
+ api(" com.itextpdf:itext-core:8.0.4 " )
39
40
api(" org.jetbrains.kotlin:kotlin-reflect" )
40
41
api(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
41
42
api(" org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0" )
@@ -51,7 +52,7 @@ dependencies {
51
52
annotationProcessor(" org.springframework.boot:spring-boot-configuration-processor" )
52
53
runtimeOnly(" com.h2database:h2" )
53
54
implementation(" org.postgresql:postgresql" )
54
- implementation(platform(" io.micrometer:micrometer-bom:1.12.5 " ))
55
+ implementation(platform(" io.micrometer:micrometer-bom:1.13.0 " ))
55
56
implementation(" io.micrometer:micrometer-core" )
56
57
implementation(" io.micrometer:micrometer-registry-prometheus" )
57
58
implementation(" io.micrometer:micrometer-observation" )
@@ -64,9 +65,10 @@ dependencyCheck {
64
65
}
65
66
66
67
tasks.withType<KotlinCompile > {
67
- kotlinOptions {
68
- freeCompilerArgs = listOf (" -Xjsr305=strict" )
69
- jvmTarget = " 21"
68
+ compilerOptions {
69
+ freeCompilerArgs.add(" -Xjsr305=strict" )
70
+ apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
71
+ jvmTarget.set(JvmTarget .JVM_21 )
70
72
}
71
73
}
72
74
0 commit comments