-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
92 lines (78 loc) · 2.47 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.9.23'
id 'org.springframework.boot' version '3.4.0'
id 'org.jetbrains.kotlin.plugin.spring' version '1.9.23'
id 'jacoco'
}
repositories {
mavenLocal()
maven {
url uri("lib")
}
mavenCentral()
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
jacocoTestReport {
dependsOn test
reports {
csv.required = true
}
}
def specmatic_version = "2.3.0"
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.apache.kafka:kafka-clients:3.7.0'
implementation 'javax.validation:validation-api:2.0.1.Final'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testApi "io.specmatic:junit5-support:${specmatic_version}"
testImplementation('io.specmatic:specmatic-kafka:0.22.9-TRIAL')
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'
}
}