Skip to content

Commit 813ee97

Browse files
BarbatosBarbatos
authored andcommitted
build(common): switch from external libp2p to local p2p module
Replace the Maven dependency on io.github.tronprotocol:libp2p:2.2.7 with a project dependency on the local :p2p module. This eliminates 11 exclude rules that were needed for the external artifact and removes the libp2p entry from dependency verification metadata. java-tron no longer depends on any external libp2p artifact.
1 parent 115e9bd commit 813ee97

2 files changed

Lines changed: 1 addition & 28 deletions

File tree

common/build.gradle

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,7 @@ dependencies {
2121
api 'org.aspectj:aspectjrt:1.9.8'
2222
api 'org.aspectj:aspectjweaver:1.9.8'
2323
api 'org.aspectj:aspectjtools:1.9.8'
24-
api group: 'io.github.tronprotocol', name: 'libp2p', version: '2.2.7',{
25-
exclude group: 'io.grpc', module: 'grpc-context'
26-
exclude group: 'io.grpc', module: 'grpc-core'
27-
exclude group: 'io.grpc', module: 'grpc-netty'
28-
exclude group: 'com.google.protobuf', module: 'protobuf-java'
29-
exclude group: 'com.google.protobuf', module: 'protobuf-java-util'
30-
// https://github.com/dom4j/dom4j/pull/116
31-
// https://github.com/gradle/gradle/issues/13656
32-
// https://github.com/dom4j/dom4j/issues/99
33-
exclude group: 'jaxen', module: 'jaxen'
34-
exclude group: 'javax.xml.stream', module: 'stax-api'
35-
exclude group: 'net.java.dev.msv', module: 'xsdlib'
36-
exclude group: 'pull-parser', module: 'pull-parser'
37-
exclude group: 'xpp3', module: 'xpp3'
38-
exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
39-
exclude group: 'org.bouncycastle', module: 'bcutil-jdk18on'
40-
}
24+
api project(':p2p')
4125
api project(":protocol")
4226
api project(":platform")
4327
}

gradle/verification-metadata.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -870,17 +870,6 @@
870870
<sha256 value="8719f349cd542ae3ce523ac3992513a8c04020621bc86e880a79afa5f1aaf589" origin="Generated by Gradle"/>
871871
</artifact>
872872
</component>
873-
<component group="io.github.tronprotocol" name="libp2p" version="2.2.7">
874-
<artifact name="libp2p-2.2.7.jar">
875-
<sha256 value="6cf446b68723299e41189bd17d1605544ec4e8bada3830c7fa54d043b22b2208" origin="Generated by Gradle"/>
876-
</artifact>
877-
<artifact name="libp2p-2.2.7.module">
878-
<sha256 value="8dcf317770be76db50d2f5dd694f5b0edba98e2bf147626d9b49bbd888669689" origin="Generated by Gradle"/>
879-
</artifact>
880-
<artifact name="libp2p-2.2.7.pom">
881-
<sha256 value="91ddb2a384207b401efa0d68b84f06ff9151fce8843e1ece3e5cf63875c1cd84" origin="Generated by Gradle"/>
882-
</artifact>
883-
</component>
884873
<component group="io.github.tronprotocol" name="zksnark-java-sdk" version="1.0.0">
885874
<artifact name="zksnark-java-sdk-1.0.0.jar">
886875
<sha256 value="d0bd272630dc6c622f968d4c7d8b1c5a7aec590ae9cde1e0e7ae7aea25adde2e" origin="Generated by Gradle"/>

0 commit comments

Comments
 (0)