diff --git a/libp2p/build.gradle.kts b/libp2p/build.gradle.kts index 49f8833a..8270648f 100644 --- a/libp2p/build.gradle.kts +++ b/libp2p/build.gradle.kts @@ -1,9 +1,13 @@ - plugins { id("com.google.protobuf").version("0.9.2") id("me.champeau.jmh").version("0.6.8") } +// https://docs.gradle.org/current/userguide/java_testing.html#ex-disable-publishing-of-test-fixtures-variants +val javaComponent = components["java"] as AdhocComponentWithVariants +javaComponent.withVariantsFromConfiguration(configurations["testFixturesApiElements"]) { skip() } +javaComponent.withVariantsFromConfiguration(configurations["testFixturesRuntimeElements"]) { skip() } + dependencies { api("io.netty:netty-common") api("io.netty:netty-buffer") @@ -45,4 +49,3 @@ protobuf { } } } -