blob: 09562c4e119b0f4a8eb6bf187d6385a347f59d30 [file] [log] [blame]
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import java.net.*
dependencies {
api(project(":kotlinx-coroutines-reactive"))
testImplementation("org.reactivestreams:reactive-streams-tck:${version("reactive_streams")}")
api("io.reactivex.rxjava2:rxjava:${version("rxjava2")}")
}
tasks.withType(DokkaTaskPartial::class) {
dokkaSourceSets.configureEach {
externalDocumentationLink {
url = URL("http://reactivex.io/RxJava/2.x/javadoc/")
packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL()
}
}
}
val testNG by tasks.registering(Test::class) {
useTestNG()
reports.html.outputLocation = 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)")
}
}
val test by tasks.getting(Test::class) {
dependsOn(testNG)
reports.html.outputLocation = file("$buildDir/reports/junit")
}