• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4import org.jetbrains.dokka.gradle.DokkaTaskPartial
5
6dependencies {
7    api project(':kotlinx-coroutines-reactive')
8    testImplementation project(':kotlinx-coroutines-reactive').sourceSets.test.output
9    testImplementation "org.reactivestreams:reactive-streams-tck:$reactive_streams_version"
10    api "io.reactivex.rxjava2:rxjava:$rxjava2_version"
11}
12
13tasks.withType(DokkaTaskPartial.class) {
14    dokkaSourceSets.configureEach {
15        externalDocumentationLink {
16            url.set(new URL('http://reactivex.io/RxJava/2.x/javadoc/'))
17            packageListUrl.set(projectDir.toPath().resolve("package.list").toUri().toURL())
18        }
19    }
20}
21
22task testNG(type: Test) {
23    useTestNG()
24    reports.html.destination = file("$buildDir/reports/testng")
25    include '**/*ReactiveStreamTckTest.*'
26    // Skip testNG when tests are filtered with --tests, otherwise it simply fails
27    onlyIf {
28        filter.includePatterns.isEmpty()
29    }
30    doFirst {
31        // Classic gradle, nothing works without doFirst
32        println "TestNG tests: ($includes)"
33    }
34}
35
36test {
37    dependsOn(testNG)
38    reports.html.destination = file("$buildDir/reports/junit")
39}
40