-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathbuild.gradle.kts
50 lines (42 loc) · 1.33 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
/*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
val reactiveStreamsVersion = property("reactive_streams_version")
dependencies {
api("org.reactivestreams:reactive-streams:$reactiveStreamsVersion")
testImplementation("org.reactivestreams:reactive-streams-tck:$reactiveStreamsVersion")
}
val testNG by tasks.registering(Test::class) {
useTestNG()
reports.html.destination = file("$buildDir/reports/testng")
include("**/*ReactiveStreamTckTest.*")
// Skip testNG when tests are filtered with --tests, otherwise it simply fails
onlyIf {
filter.includePatterns.isEmpty()
}
doFirst {
// Classic gradle, nothing works without doFirst
println("TestNG tests: ($includes)")
}
}
tasks.test {
reports.html.destination = file("$buildDir/reports/junit")
}
tasks.check {
dependsOn(testNG)
}
externalDocumentationLink(
url = "https://www.reactive-streams.org/reactive-streams-$reactiveStreamsVersion-javadoc/"
)
val commonKoverExcludes = listOf(
"kotlinx.coroutines.reactive.FlowKt", // Deprecated
"kotlinx.coroutines.reactive.FlowKt__MigrationKt", // Deprecated
"kotlinx.coroutines.reactive.ConvertKt" // Deprecated
)
kover {
filters {
classes {
excludes += commonKoverExcludes
}
}
}