-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
79 lines (65 loc) · 2.21 KB
/
build.gradle.kts
File metadata and controls
79 lines (65 loc) · 2.21 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
import org.jetbrains.kotlin.config.KotlinCompilerVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.spring.boot.two)
alias(libs.plugins.spring.dependency.management)
kotlin("jvm")
alias(libs.plugins.kotlin.spring)
}
group = "io.sentry.sample.spring-boot"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
implementation(Config.Libs.springBootStarterWebflux)
implementation(Config.Libs.springBootStarterGraphql)
implementation(Config.Libs.springBootStarterActuator)
implementation(Config.Libs.kotlinReflect)
implementation(kotlin(Config.kotlinStdLib, KotlinCompilerVersion.VERSION))
implementation(projects.sentrySpringBootStarter)
implementation(projects.sentryLogback)
implementation(projects.sentryGraphql)
testImplementation(projects.sentrySystemTestSupport)
testImplementation(Config.Libs.springBootStarterTest) {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation(kotlin(Config.kotlinStdLib))
testImplementation(libs.kotlin.test.junit)
testImplementation("ch.qos.logback:logback-classic:1.5.16")
testImplementation("ch.qos.logback:logback-core:1.5.16")
testImplementation(Config.Libs.slf4jApi2)
testImplementation(Config.Libs.apolloKotlin)
testImplementation("org.apache.httpcomponents:httpclient")
}
configure<SourceSetContainer> {
test {
java.srcDir("src/test/java")
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
tasks.register<Test>("systemTest").configure {
group = "verification"
description = "Runs the System tests"
outputs.upToDateWhen { false }
maxParallelForks = 1
// Cap JVM args per test
minHeapSize = "128m"
maxHeapSize = "1g"
filter {
includeTestsMatching("io.sentry.systemtest*")
}
}
tasks.named("test").configure {
require(this is Test)
filter {
excludeTestsMatching("io.sentry.systemtest.*")
}
}