1 import kotlinx.kover.gradle.plugin.dsl.* 2 3 /* 4 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 5 */ 6 <lambda>null7plugins { 8 // apply plugin to use autocomplete for Kover DSL 9 id("org.jetbrains.kotlinx.kover") 10 } 11 12 val reactiveStreamsVersion = property("reactive_streams_version") 13 <lambda>null14dependencies { 15 api("org.reactivestreams:reactive-streams:$reactiveStreamsVersion") 16 testImplementation("org.reactivestreams:reactive-streams-tck:$reactiveStreamsVersion") 17 } 18 <lambda>null19val testNG by tasks.registering(Test::class) { 20 useTestNG() 21 reports.html.destination = 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>null33tasks.test { 34 reports.html.destination = file("$buildDir/reports/junit") 35 } 36 <lambda>null37tasks.check { 38 dependsOn(testNG) 39 } 40 41 externalDocumentationLink( 42 url = "https://www.reactive-streams.org/reactive-streams-$reactiveStreamsVersion-javadoc/" 43 ) 44 <lambda>null45koverReport { 46 filters { 47 excludes { 48 classes( 49 "kotlinx.coroutines.reactive.FlowKt", // Deprecated 50 "kotlinx.coroutines.reactive.FlowKt__MigrationKt", // Deprecated 51 "kotlinx.coroutines.reactive.ConvertKt" // Deprecated 52 ) 53 } 54 } 55 } 56