-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (81 loc) · 2.66 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '2.1.0'
id 'org.springframework.boot' version '3.4.0'
id 'org.jetbrains.kotlin.plugin.spring' version '2.1.0'
id 'jacoco'
}
repositories {
maven {
url uri("lib")
}
mavenLocal()
mavenCentral()
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
jacocoTestReport {
dependsOn test
reports {
csv.required = true
}
}
dependencies {
implementation platform('org.springframework.boot:spring-boot-dependencies:3.4.0')
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.apache.kafka:kafka-clients:3.7.0'
implementation 'javax.validation:validation-api:2.0.1.Final'
implementation 'com.h2database:h2'
implementation 'org.liquibase:liquibase-core'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.15.0'
testApi "io.specmatic:junit5-support:2.7.4"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('io.specmatic.kafka:specmatic-kafka:0.29.0')
testImplementation(
'org.assertj:assertj-core:3.24.2',
'org.junit.jupiter:junit-jupiter-api:5.10.1'
)
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.0'
}
sourceSets {
test {
resources {
srcDir file('src/test/kotlin')
exclude '**/*.java'
exclude '**/*.kt}'
}
}
}
test {
useJUnitPlatform {
includeEngines("junit-jupiter")
}
testLogging.showStandardStreams = true
afterSuite { desc, result ->
if (!desc.parent) {
def resultLine = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
def lineLength = resultLine.length()
def separator = "-" * lineLength
println separator
println resultLine
println separator
}
}
}
group = 'io.specmatic.sample'
version = '1.0'
sourceCompatibility = '17'
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
}
}