-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (58 loc) · 2.14 KB
/
build.gradle
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'org.jetbrains.kotlin.plugin.spring' version '1.9.22'
id "org.jetbrains.kotlin.plugin.serialization" version "2.0.0"
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
repositories {
maven { url uri("lib") }
mavenCentral()
}
dependencies {
implementation ('org.springframework.boot:spring-boot-starter') {
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
implementation 'org.springframework.kafka:spring-kafka:3.2.0'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.5'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.12.5'
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2"
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.0'
testImplementation('io.specmatic:specmatic-kafka:0.22.12-TRIAL')
testImplementation 'org.testcontainers:testcontainers:1.18.3'
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += '-Xjsr305=strict'
jvmTarget = '17'
}
}
test {
useJUnitPlatform()
environment "PUBSUB_EMULATOR_HOST", "localhost:8085"
testLogging.showStandardStreams = true
testLogging {
showStandardStreams = true
events "passed", "skipped", "failed"
afterSuite { desc, result ->
if (desc.parent == null) {
println()
println("-------------------------")
println("Total tests run: ${result.testCount}")
println("Tests passed: ${result.successfulTestCount}")
println("Tests failed: ${result.failedTestCount}")
println("Tests skipped: ${result.skippedTestCount}")
println("-------------------------")
println()
}
}
}
}