1 /* 2 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 val reactiveStreamsVersion = property("reactive_streams_version") 6 <lambda>null7dependencies { 8 api("org.reactivestreams:reactive-streams:$reactiveStreamsVersion") 9 testImplementation("org.reactivestreams:reactive-streams-tck:$reactiveStreamsVersion") 10 } 11 <lambda>null12val testNG by tasks.registering(Test::class) { 13 useTestNG() 14 reports.html.destination = file("$buildDir/reports/testng") 15 include("**/*ReactiveStreamTckTest.*") 16 // Skip testNG when tests are filtered with --tests, otherwise it simply fails 17 onlyIf { 18 filter.includePatterns.isEmpty() 19 } 20 doFirst { 21 // Classic gradle, nothing works without doFirst 22 println("TestNG tests: ($includes)") 23 } 24 } 25 <lambda>null26tasks.test { 27 reports.html.destination = file("$buildDir/reports/junit") 28 } 29 <lambda>null30tasks.check { 31 dependsOn(testNG) 32 } 33 34 externalDocumentationLink( 35 url = "https://www.reactive-streams.org/reactive-streams-$reactiveStreamsVersion-javadoc/" 36 ) 37 38 val commonKoverExcludes = listOf( 39 "kotlinx.coroutines.reactive.FlowKt", // Deprecated 40 "kotlinx.coroutines.reactive.FlowKt__MigrationKt", // Deprecated 41 "kotlinx.coroutines.reactive.ConvertKt" // Deprecated 42 ) 43 <lambda>null44tasks.koverHtmlReport { 45 excludes = commonKoverExcludes 46 } 47 <lambda>null48tasks.koverVerify { 49 excludes = commonKoverExcludes 50 } 51