xref: /aosp_15_r20/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/build.gradle.kts (revision 7a7160fed73afa6648ef8aa100d4a336fe921d9a)

<lambda>null1 plugins {
2     // apply plugin to use autocomplete for Kover DSL
3     id("org.jetbrains.kotlinx.kover")
4 }
5 
6 val reactiveStreamsVersion = property("reactive_streams_version")
7 
<lambda>null8 dependencies {
9     api("org.reactivestreams:reactive-streams:$reactiveStreamsVersion")
10     testImplementation("org.reactivestreams:reactive-streams-tck:$reactiveStreamsVersion")
11 }
12 
<lambda>null13 val testNG by tasks.registering(Test::class) {
14     useTestNG()
15     reports.html.outputLocation = layout.buildDirectory.dir("reports/testng")
16     include("**/*ReactiveStreamTckTest.*")
17     // Skip testNG when tests are filtered with --tests, otherwise it simply fails
18     onlyIf {
19         filter.includePatterns.isEmpty()
20     }
21     doFirst {
22         // Classic gradle, nothing works without doFirst
23         println("TestNG tests: ($includes)")
24     }
25 }
26 
<lambda>null27 tasks.test {
28     reports.html.outputLocation = layout.buildDirectory.dir("reports/junit")
29 }
30 
<lambda>null31 tasks.check {
32     dependsOn(testNG)
33 }
34 
35 externalDocumentationLink(
36     url = "https://www.reactive-streams.org/reactive-streams-$reactiveStreamsVersion-javadoc/"
37 )
38 
<lambda>null39 kover {
40     reports {
41         filters {
42             excludes {
43                 classes(
44                     "kotlinx.coroutines.reactive.FlowKt", // Deprecated
45                     "kotlinx.coroutines.reactive.FlowKt__MigrationKt", // Deprecated
46                     "kotlinx.coroutines.reactive.ConvertKt" // Deprecated
47                 )
48             }
49         }
50     }
51 }
52