Skip to content

Commit e4e6b4c

Browse files
authored
Merge pull request #307 from libp2p/1.0.0-hotfix
2 parents cebf411 + d883b63 commit e4e6b4c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libp2p/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
21
plugins {
32
id("com.google.protobuf").version("0.9.2")
43
id("me.champeau.jmh").version("0.6.8")
54
}
65

6+
// https://docs.gradle.org/current/userguide/java_testing.html#ex-disable-publishing-of-test-fixtures-variants
7+
val javaComponent = components["java"] as AdhocComponentWithVariants
8+
javaComponent.withVariantsFromConfiguration(configurations["testFixturesApiElements"]) { skip() }
9+
javaComponent.withVariantsFromConfiguration(configurations["testFixturesRuntimeElements"]) { skip() }
10+
711
dependencies {
812
api("io.netty:netty-common")
913
api("io.netty:netty-buffer")
@@ -45,4 +49,3 @@ protobuf {
4549
}
4650
}
4751
}
48-

0 commit comments

Comments
 (0)