<lambda>null1plugins { 2 // apply plugin to use autocomplete for Kover DSL 3 id("org.jetbrains.kotlinx.kover") 4 } 5 6 val reactiveStreamsVersion = property("reactive_streams_version") 7 <lambda>null8dependencies { 9 api("org.reactivestreams:reactive-streams:$reactiveStreamsVersion") 10 testImplementation("org.reactivestreams:reactive-streams-tck:$reactiveStreamsVersion") 11 } 12 <lambda>null13val testNG by tasks.registering(Test::class) { 14 useTestNG() 15 reports.html.outputLocation = layout.buildDirectory.dir("reports/testng") 16 include("**/*ReactiveStreamTckTest.*") 17 // Skip testNG when tests are filtered with --tests, otherwise it simply fails 18 onlyIf { 19 filter.includePatterns.isEmpty() 20 } 21 doFirst { 22 // Classic gradle, nothing works without doFirst 23 println("TestNG tests: ($includes)") 24 } 25 } 26 <lambda>null27tasks.test { 28 reports.html.outputLocation = layout.buildDirectory.dir("reports/junit") 29 } 30 <lambda>null31tasks.check { 32 dependsOn(testNG) 33 } 34 35 externalDocumentationLink( 36 url = "https://www.reactive-streams.org/reactive-streams-$reactiveStreamsVersion-javadoc/" 37 ) 38 <lambda>null39kover { 40 reports { 41 filters { 42 excludes { 43 classes( 44 "kotlinx.coroutines.reactive.FlowKt", // Deprecated 45 "kotlinx.coroutines.reactive.FlowKt__MigrationKt", // Deprecated 46 "kotlinx.coroutines.reactive.ConvertKt" // Deprecated 47 ) 48 } 49 } 50 } 51 } 52