@@ -18,40 +18,37 @@ subprojects {
18
18
maven(" https://oss.sonatype.org/content/repositories/releases/" )
19
19
maven(" https://packages.confluent.io/maven/" )
20
20
}
21
- val kotestVersion = " 5.8.1"
22
- val jacksonVersion = " 2.17.0"
23
- val confluentVersion = " 7.6.1"
24
21
dependencies {
25
22
implementation(rootProject.libs.kotlin.reflect)
26
23
implementation(rootProject.libs.kotlin.script.runtime)
27
24
implementation(rootProject.libs.kotlin.compiler.embeddable)
28
- implementation(" org.jetbrains .kotlinx:kotlinx- coroutines-core:1.8.0 " )
29
- implementation(platform(" io. arrow-kt:arrow-stack:1.2.4 " ))
30
- implementation(" io. arrow-kt:arrow- core" )
31
- implementation(" io. arrow-kt:arrow-fx- coroutines" )
32
- implementation(" io. arrow-kt:arrow-fx- stm" )
33
- implementation(" com.fasterxml .jackson.datatype:jackson-datatype- jsr310: $jacksonVersion " )
34
- implementation(" com.fasterxml .jackson.datatype:jackson-datatype- jdk8: $jacksonVersion " )
35
- implementation(" com.fasterxml .jackson.module:jackson-module- kotlin: $jacksonVersion " )
36
- implementation(" com.fasterxml .jackson.dataformat:jackson-dataformat- xml: $jacksonVersion " )
25
+ implementation(rootProject.libs .kotlinx. coroutines.core )
26
+ implementation(platform(rootProject.libs. arrow.stack ))
27
+ implementation(rootProject.libs. arrow. core)
28
+ implementation(rootProject.libs. arrow.fx. coroutines)
29
+ implementation(rootProject.libs. arrow.fx. stm)
30
+ implementation(rootProject.libs .jackson.datatype. jsr310)
31
+ implementation(rootProject.libs .jackson.datatype. jdk8)
32
+ implementation(rootProject.libs .jackson.module. kotlin)
33
+ implementation(rootProject.libs .jackson.dataformat. xml)
37
34
implementation(rootProject.libs.slf4j.api)
38
35
implementation(rootProject.libs.jul.to.slf4j)
39
36
implementation(rootProject.libs.jcl.over.slf4j)
40
37
implementation(rootProject.libs.log4j.over.slf4j)
41
- implementation(" ch.qos .logback:logback-classic:1.5.6 " )
42
- implementation(" net. logstash.logback:logstash-logback-encoder:7.4 " )
43
- implementation(" com.papertrailapp " , " logback-syslog4j " , " 1.0.0 " )
44
- implementation(" io.github.cdimascio: dotenv-kotlin:6.4.1 " )
45
- implementation(" com.networknt: json- schema-validator:1.4.0 " )
46
- implementation(" com.ibm.mq: com.ibm.mq.allclient:9.3.5.0 " )
47
- implementation(" org.apache .kafka:kafka-clients:3.7.0 " ) {
38
+ implementation(rootProject.libs .logback.classic )
39
+ implementation(rootProject.libs. logstash.logback.encoder )
40
+ implementation(rootProject.libs. logback.syslog4j )
41
+ implementation(rootProject.libs. dotenv.kotlin )
42
+ implementation(rootProject.libs. json. schema.validator )
43
+ implementation(rootProject.libs. com.ibm.mq.allclient)
44
+ implementation(rootProject.libs .kafka.clients ) {
48
45
exclude(" org.apache.kafka" , " kafka-raft" )
49
46
exclude(" org.apache.kafka" , " kafka-server-common" )
50
47
exclude(" org.apache.kafka" , " kafka-storage" )
51
48
exclude(" org.apache.kafka" , " kafka-storage-api" )
52
49
exclude(" org.apache.kafka" , " kafka-streams" )
53
50
}
54
- implementation(" io.confluent: kafka- avro- serializer: $confluentVersion " ) {
51
+ implementation(rootProject.libs. kafka. avro. serializer) {
55
52
exclude(" org.apache.kafka" , " kafka-clients" )
56
53
exclude(" io.confluent" , " common-utils" )
57
54
exclude(" io.confluent" , " logredactor" )
@@ -63,27 +60,27 @@ subprojects {
63
60
exclude(" com.google.code.findbugs" )
64
61
exclude(" io.swagger.core.v3" )
65
62
}
66
- implementation(" org.apache .avro:avro:1.11.3 " ) {
63
+ implementation(rootProject.libs .avro) {
67
64
exclude(" org.apache.commons" , " commons-compress" )
68
65
}
69
- implementation(" com.github.ben-manes. caffeine:caffeine:3.1.8 " )
70
- implementation(" io. micrometer:micrometer-core:1.12.5 " )
71
- implementation(" io. micrometer:micrometer- registry-prometheus:1.12.5 " )
72
- implementation(" com.github.seratch: kotliquery:1.9.0 " )
73
- implementation(" org.flywaydb: flyway-core:10.11.1 " )
74
- implementation(" org.flywaydb: flyway- database-postgresql:10.11.1 " )
75
- implementation(" com.zaxxer:HikariCP:5.1.0 " )
76
- implementation(" com.github.navikt: vault-jdbc:1.3.10 " )
77
- implementation(" org.postgresql:postgresql:42.7.3 " ) {
66
+ implementation(rootProject.libs. caffeine)
67
+ implementation(rootProject.libs. micrometer.core )
68
+ implementation(rootProject.libs. micrometer. registry.prometheus )
69
+ implementation(rootProject.libs. kotliquery)
70
+ implementation(rootProject.libs. flyway.core )
71
+ implementation(rootProject.libs. flyway. database.postgresql )
72
+ implementation(rootProject.libs.hikaricp )
73
+ implementation(rootProject.libs. vault.jdbc )
74
+ implementation(rootProject.libs.postgresql ) {
78
75
exclude(" org.apache.commons" , " commons-compress" )
79
76
}
80
77
// Brukes av avro?
81
- implementation(" org.apache .commons:commons-compress:1.26.1 " )
78
+ implementation(rootProject.libs .commons.compress )
82
79
83
80
84
81
implementation(rootProject.libs.ktor.server.netty)
85
82
implementation(rootProject.libs.ktor.server.auth.jwt) {
86
- exclude(group = " junit" )
83
+ exclude(" junit" )
87
84
}
88
85
implementation(rootProject.libs.ktor.server.metrics.micrometer)
89
86
implementation(rootProject.libs.ktor.serialization.jackson)
@@ -94,29 +91,31 @@ subprojects {
94
91
implementation(rootProject.libs.ktor.server.status.pages)
95
92
96
93
// We exclude jdk15on because of security issues. We use jdk18on instead.
97
- implementation(" org.bouncycastle: bcprov-jdk18on:1.78.1 " )
94
+ implementation(rootProject.libs. bcprov.jdk18on )
98
95
99
96
testRuntimeOnly(rootProject.libs.jupiter.engine)
100
97
101
98
testImplementation(rootProject.libs.jupiter.api)
102
99
testImplementation(rootProject.libs.jupiter.params)
103
- testImplementation(" io.kotest:kotest-assertions-core:$kotestVersion " )
104
- testImplementation(" io.kotest:kotest-assertions-json:$kotestVersion " )
105
- testImplementation(" io.kotest.extensions:kotest-assertions-arrow:1.4.0" )
106
- testImplementation(" io.kotest:kotest-extensions:$kotestVersion " )
107
- testImplementation(" org.skyscreamer:jsonassert:1.5.1" )
108
- testImplementation(" org.mockito.kotlin:mockito-kotlin:5.3.1" )
100
+ testImplementation(rootProject.libs.kotest.assertions.core)
101
+ testImplementation(rootProject.libs.kotest.assertions.json)
102
+ testImplementation(rootProject.libs.kotest.extensions)
103
+ testImplementation(rootProject.libs.kotest.assertions.arrow)
104
+
105
+
106
+ testImplementation(rootProject.libs.jsonassert)
107
+ testImplementation(rootProject.libs.mockito.kotlin)
109
108
testImplementation(
110
- enforcedPlatform(" io.zonky.test .postgres:embedded-postgres- binaries-bom:15.5.1 " ),
109
+ enforcedPlatform(rootProject.libs.embedded .postgres. binaries.bom ),
111
110
)
112
- testImplementation(" io.zonky.test: embedded-postgres:2.0.7 " ) {
111
+ testImplementation(rootProject.libs. embedded.postgres ) {
113
112
exclude(" org.apache.commons" , " commons-compress" )
114
113
}
115
114
// Legger til manglende binaries for nye Mac's med M1 cpuer. (denne arver versjonen til embedded-postgres-binaries-bom)
116
- testImplementation(" io.zonky.test .postgres:embedded-postgres- binaries- darwin- arm64v8" ) {
115
+ testImplementation(rootProject.libs.embedded .postgres. binaries. darwin. arm64v8) {
117
116
exclude(" org.apache.commons" , " commons-compress" )
118
117
}
119
- testImplementation(" org. xmlunit:xmlunit-matchers:2.9.1 " )
118
+ testImplementation(rootProject.libs. xmlunit.matchers )
120
119
testImplementation(rootProject.libs.ktor.server.test.host) {
121
120
exclude(group = " junit" )
122
121
exclude(group = " org.eclipse.jetty" ) // conflicts with WireMock
0 commit comments