-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
55 lines (45 loc) · 1.76 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
55 lines (45 loc) · 1.76 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
plugins {
id("com.netflix.nebula.integtest") version "10.0.1"
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
api(project(":rollbar-java"))
api("org.reactivestreams:reactive-streams:1.0.3")
compileOnly("org.apache.httpcomponents.client5:httpclient5:5.5.1")
testImplementation("org.reactivestreams:reactive-streams-tck:1.0.4")
testImplementation("org.mockito:mockito-core:5.13.0")
testImplementation("org.testng:testng:7.10.2")
testImplementation("org.apache.httpcomponents.client5:httpclient5:5.5.1")
testImplementation("org.apache.commons:commons-lang3:3.12.0")
testImplementation("com.google.code.gson:gson:2.13.2")
testImplementation(platform("io.projectreactor:reactor-bom:2025.0.4"))
testImplementation("io.projectreactor:reactor-core")
// Reuse some of the tests since we're providing compatible implementations
testImplementation(project(path = ":rollbar-java", configuration = "integTestRuntime"))
testImplementation(project(path = ":rollbar-java", configuration = "integTestArtifacts"))
integTestImplementation("com.github.tomakehurst:wiremock-jre8:2.27.2")
integTestImplementation("com.google.code.gson:gson:2.13.2")
}
// The reactive streams TCK tests use TestNG
tasks.register<Test>("tckTest") {
useTestNG()
}
tasks.withType<JavaCompile>().configureEach {
// For main sources: keep targeting Java 8
if (name.contains("main", ignoreCase = true)) {
options.release.set(8)
}
// For test sources: bump to Java 11
if (name.contains("test", ignoreCase = true)) {
options.release.set(11)
}
}
tasks.named("check") {
dependsOn("tckTest")
}
tasks.named("integrationTest") {
dependsOn(project(":rollbar-java").tasks.named("integTestJar"))
}