-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
46 lines (41 loc) · 2.35 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// the version is set in parent/root build.gradle.kts
dependencies {
val springVersion = "5.3.23"
val hibernateVersion = "5.6.14.Final"
val kafkaVersion = "3.3.1"
val springKafkaVersion = "2.9.2"
val log4jVersion = "2.19.0"
val testcontainersVersion = "1.18.3"
implementation("org.springframework:spring-context:$springVersion")
implementation("org.springframework:spring-orm:$springVersion")
implementation("org.hibernate:hibernate-core:$hibernateVersion")
implementation("org.hibernate:hibernate-java8:$hibernateVersion")
implementation("com.vladmihalcea:hibernate-types-52:2.21.1")
implementation("org.apache.kafka:kafka-clients:$kafkaVersion")
implementation("com.google.protobuf:protobuf-java:${rootProject.extra["protobufVersion"]}")
implementation(project(":commons"))
implementation("org.slf4j:slf4j-api:2.0.7")
implementation("javax.annotation:javax.annotation-api:1.3.2")
// testing
testImplementation("junit:junit:4.13.2")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.9.1")
testImplementation("org.springframework:spring-test:$springVersion")
testImplementation("org.testcontainers:postgresql:$testcontainersVersion")
testImplementation("org.testcontainers:toxiproxy:$testcontainersVersion")
testImplementation("org.postgresql:postgresql:42.5.1")
testImplementation("org.flywaydb:flyway-core:9.15.2")
testImplementation("org.flywaydb.flyway-test-extensions:flyway-spring-test:7.0.0")
testImplementation("org.apache.kafka:kafka_2.13:$kafkaVersion") // specify explicitly to prevent conflicts of different server and client versions
testImplementation("org.springframework.kafka:spring-kafka:$springKafkaVersion")
testImplementation("org.springframework.kafka:spring-kafka-test:$springKafkaVersion")
testImplementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:$log4jVersion")
}
// conflict of vladmihalcea regarding jackson:
// Caused by: com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.10.2 requires Jackson Databind version >= 2.10.0 and < 2.11.0
// therefore we exclude the jackson-module-scala_2.12 pulled in by kafka to fix this
configurations {
testImplementation {
exclude("com.fasterxml.jackson.module", "jackson-module-scala_2.12")
}
}