From a2b461dc882e617d034ec1f6ec6bebb0ac296348 Mon Sep 17 00:00:00 2001 From: Anton Nashatyrev Date: Tue, 16 May 2023 14:04:27 +0400 Subject: [PATCH] Finer grained netty dependencies --- libp2p/build.gradle.kts | 9 ++++++++- tools/simulator/build.gradle | 2 ++ versions.gradle | 9 ++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/libp2p/build.gradle.kts b/libp2p/build.gradle.kts index 246b41836..497726425 100644 --- a/libp2p/build.gradle.kts +++ b/libp2p/build.gradle.kts @@ -5,7 +5,12 @@ plugins { } dependencies { - api("io.netty:netty-all") + api("io.netty:netty-common") + api("io.netty:netty-buffer") + api("io.netty:netty-transport") + implementation("io.netty:netty-handler") + implementation("io.netty:netty-codec-http") + api("com.google.protobuf:protobuf-java") implementation("commons-codec:commons-codec") @@ -16,6 +21,8 @@ dependencies { testImplementation(project(":tools:schedulers")) + testFixturesImplementation("io.netty:netty-transport-classes-epoll") + jmhImplementation(project(":tools:schedulers")) jmhImplementation("org.openjdk.jmh:jmh-core") jmhAnnotationProcessor("org.openjdk.jmh:jmh-generator-annprocess") diff --git a/tools/simulator/build.gradle b/tools/simulator/build.gradle index 2529f783a..4798a1dbf 100644 --- a/tools/simulator/build.gradle +++ b/tools/simulator/build.gradle @@ -5,6 +5,8 @@ dependencies { api project(':libp2p') api project(':tools:schedulers') + implementation("io.netty:netty-handler") + implementation("org.jgrapht:jgrapht-core:1.3.1") api("org.apache.commons:commons-math3:3.6.1") implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.0") diff --git a/versions.gradle b/versions.gradle index d7c299f79..cdf96f735 100644 --- a/versions.gradle +++ b/versions.gradle @@ -27,7 +27,14 @@ dependencyManagement { entry 'protobuf-java' entry 'protoc' } - dependency "io.netty:netty-all:4.1.87.Final" + dependencySet(group: "io.netty", version: "4.1.87.Final") { + entry 'netty-common' + entry 'netty-handler' + entry 'netty-transport' + entry 'netty-buffer' + entry 'netty-codec-http' + entry 'netty-transport-classes-epoll' + } dependency "commons-codec:commons-codec:1.15" dependency "tech.pegasys:noise-java:22.1.0" dependencySet(group: "org.bouncycastle", version: "1.70") {