-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
114 lines (99 loc) · 3.58 KB
/
build.gradle
File metadata and controls
114 lines (99 loc) · 3.58 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'java'
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '2.3.0'
id 'org.springframework.boot' version '3.5.14'
id 'org.jetbrains.kotlin.plugin.spring' version '2.3.0'
id("com.github.bjornvester.wsdl2java") version "2.0.2"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://repo.specmatic.io/releases"
}
}
wsdl2java {
cxfVersion.set("4.0.2")
wsdlDir.set(layout.projectDirectory.dir("wsdls"))
includes.set(
[
"inventory.wsdl"
]
)
generatedSourceDir.set(layout.projectDirectory.dir("src/generated/wsdl2java"))
verbose = true
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
compilerOptions.languageVersion.set(KotlinVersion.KOTLIN_2_2)
compilerOptions.apiVersion.set(KotlinVersion.KOTLIN_2_2)
}
}
jacocoTestReport {
dependsOn test
reports {
csv.required = true
}
}
def specmatic_version = "2.44.2"
dependencies {
implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.14')
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 'jakarta.activation:jakarta.activation-api:2.1.4'
implementation 'jakarta.validation:jakarta.validation-api:3.1.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
implementation 'jakarta.xml.soap:jakarta.xml.soap-api:3.0.2'
implementation 'jakarta.xml.soap:jakarta.xml.soap-api:3.0.2'
implementation 'com.sun.xml.messaging.saaj:saaj-impl:3.0.4'
implementation 'org.springframework.ws:spring-ws-core:4.1.3'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.4'
implementation group: 'org.glassfish.hk2', name: 'osgi-resource-locator', version: '3.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "io.specmatic:junit5-support:${specmatic_version}"
testImplementation "io.specmatic:specmatic-core:${specmatic_version}"
testImplementation 'org.assertj:assertj-core:3.27.7'
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.4'
testImplementation 'org.junit.platform:junit-platform-launcher:1.14.4'
testImplementation 'org.testcontainers:junit-jupiter:1.21.4'
}
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'
}
}