xref: /aosp_15_r20/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/build.gradle.kts (revision 7a7160fed73afa6648ef8aa100d4a336fe921d9a)
1 import org.jetbrains.dokka.gradle.DokkaTaskPartial
2 import java.net.*
3 
<lambda>null4 dependencies {
5     api(project(":kotlinx-coroutines-reactive"))
6     testImplementation("org.reactivestreams:reactive-streams-tck:${version("reactive_streams")}")
7     api("io.reactivex.rxjava3:rxjava:${version("rxjava3")}")
8 }
9 
<lambda>null10 tasks.withType(DokkaTaskPartial::class) {
11     dokkaSourceSets.configureEach {
12         externalDocumentationLink {
13             url = URL("https://reactivex.io/RxJava/3.x/javadoc/")
14             packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL()
15         }
16     }
17 }
18 
<lambda>null19 val testNG by tasks.registering(Test::class) {
20     useTestNG()
21     reports.html.outputLocation = file("$buildDir/reports/testng")
22     include("**/*ReactiveStreamTckTest.*")
23     // Skip testNG when tests are filtered with --tests, otherwise it simply fails
24     onlyIf {
25         filter.includePatterns.isEmpty()
26     }
27     doFirst {
28         // Classic gradle, nothing works without doFirst
29         println("TestNG tests: ($includes)")
30     }
31 }
32 
<lambda>null33 val test by tasks.getting(Test::class) {
34     dependsOn(testNG)
35     reports.html.outputLocation = file("$buildDir/reports/junit")
36 }
37