Skip to content

Commit

Permalink
Finer grained netty dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashatyrev committed May 16, 2023
1 parent 70f712b commit a2b461d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion libp2p/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions tools/simulator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
9 changes: 8 additions & 1 deletion versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit a2b461d

Please sign in to comment.