-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (59 loc) · 1.86 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
alias(libs.plugins.th2.base)
alias(libs.plugins.th2.publish)
alias(libs.plugins.kotlin)
alias(libs.plugins.kapt) apply false
alias(libs.plugins.serialization) apply false
alias(libs.plugins.th2.grpc) apply false
alias(libs.plugins.th2.component) apply false
}
dependencyCheck {
skipConfigurations = listOf("kapt", "kaptClasspath_kaptKotlin", "kaptTest", "kaptTestFixtures")
suppressionFile = "suppressions.xml"
}
allprojects {
group = "com.exactpro.th2"
version = project.findProperty("release_version")
val suffix: String = project.findProperty("version_suffix").toString()
if (!suffix.isEmpty()) {
version = "$version-$suffix"
}
}
subprojects {
apply(plugin = "kotlin")
kotlin {
jvmToolchain(11)
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
resolutionStrategy.cacheDynamicVersionsFor(0, "seconds")
}
dependencies {
implementation("org.slf4j:slf4j-api")
implementation(rootProject.libs.kotlin.logging)
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl") {
because("logging in testing")
}
testImplementation("org.apache.logging.log4j:log4j-core") {
because("logging in testing")
}
implementation(rootProject.libs.junit.jupiter)
implementation(rootProject.libs.mockito.kotlin)
implementation(rootProject.libs.strikt.core)
implementation(rootProject.libs.strikt.jackson)
}
tasks.test {
useJUnitPlatform {
excludeTags("integration-test")
}
}
tasks.register<Test>("integrationTest") {
group = "verification"
useJUnitPlatform {
includeTags("integration-test")
}
testLogging {
showStandardStreams = true
}
}
}