1 import org.jetbrains.dokka.gradle.DokkaTaskPartial 2 import java.net.* 3 <lambda>null4dependencies { 5 api(project(":kotlinx-coroutines-reactive")) 6 testImplementation("org.reactivestreams:reactive-streams-tck:${version("reactive_streams")}") 7 api("io.reactivex.rxjava2:rxjava:${version("rxjava2")}") 8 } 9 <lambda>null10tasks.withType(DokkaTaskPartial::class) { 11 dokkaSourceSets.configureEach { 12 externalDocumentationLink { 13 url = URL("http://reactivex.io/RxJava/2.x/javadoc/") 14 packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL() 15 } 16 } 17 } 18 <lambda>null19val 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>null33val test by tasks.getting(Test::class) { 34 dependsOn(testNG) 35 reports.html.outputLocation = file("$buildDir/reports/junit") 36 } 37