1
- val javaVersion = " 17 "
2
- val ktorVersion = " 2.3.4 "
3
- val logbackClassicVersion = " 1.4.11 "
1
+ val javaVersion = " 21 "
2
+ val ktorVersion = " 2.3.7 "
3
+ val logbackClassicVersion = " 1.4.14 "
4
4
val logbackEncoderVersion = " 7.4"
5
5
6
- val junitJupiterVersion = " 5.10.0"
6
+ val junitJupiterVersion = " 5.10.1"
7
+
8
+ val flywayVersion = " 10.4.1"
9
+ val hikariCPVersion = " 5.1.0"
10
+ val postgresqlVersion = " 42.7.1"
11
+ val kotliQueryVersion = " 1.9.0"
12
+ val testContainerPostgresqlVersion = " 1.19.3"
7
13
8
14
plugins {
9
- kotlin(" jvm" ) version " 1.9.10 "
15
+ kotlin(" jvm" ) version " 1.9.22 "
10
16
}
11
17
12
18
repositories {
@@ -17,12 +23,13 @@ repositories {
17
23
dependencies {
18
24
implementation(" com.github.navikt:rapids-and-rivers:2023093008351696055717.ffdec6aede3d" )
19
25
20
- implementation(" org.flywaydb:flyway-core:9.7.0" )
21
- implementation(" com.zaxxer:HikariCP:5.0.1" )
26
+ implementation(" org.flywaydb:flyway-core:$flywayVersion " )
27
+ implementation(" org.flywaydb:flyway-database-postgresql:$flywayVersion " )
28
+ implementation(" com.zaxxer:HikariCP:$hikariCPVersion " )
22
29
implementation(" org.postgresql:postgresql:42.6.0" )
23
- implementation(" com.github.seratch:kotliquery:1.9.0 " )
30
+ implementation(" com.github.seratch:kotliquery:$kotliQueryVersion " )
24
31
25
- testImplementation(" org.testcontainers:postgresql:1.17.5 " )
32
+ testImplementation(" org.testcontainers:postgresql:$testContainerPostgresqlVersion " )
26
33
27
34
testImplementation(" org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion " )
28
35
testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion " )
@@ -37,6 +44,13 @@ tasks {
37
44
kotlinOptions.jvmTarget = javaVersion
38
45
}
39
46
47
+ withType<Test > {
48
+ useJUnitPlatform()
49
+ testLogging {
50
+ events(" passed" , " skipped" , " failed" )
51
+ }
52
+ }
53
+
40
54
withType<Jar > {
41
55
archiveBaseName.set(" app" )
42
56
0 commit comments