Simplify Trie Dependencies (#4259)

Make the ethereum/trie and services/kvstore modules  as slim as possible
by dropping dependencies.

* The ':util' api dependency is removed from kvstore  and added to
   eth module
* Move tries's kvstore dependency to test
* Other dependencies are removed as unused from trie and kvstore

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
This commit is contained in:
Danno Ferrin
2022-08-15 21:24:09 -06:00
committed by GitHub
parent f847ead5c7
commit d2968509ba
4 changed files with 4 additions and 14 deletions

View File

@@ -35,6 +35,7 @@ task testJar(type: Jar) {
dependencies {
api 'org.slf4j:slf4j-api'
api project(':util')
annotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess'
implementation project(':config')

View File

@@ -30,16 +30,16 @@ jar {
dependencies {
implementation project(':crypto')
implementation project(':ethereum:rlp')
implementation project(':services:kvstore')
implementation "org.immutables:value-annotations"
implementation 'com.google.guava:guava'
implementation 'io.opentelemetry:opentelemetry-api'
implementation 'org.apache.tuweni:tuweni-bytes'
implementation 'org.bouncycastle:bcprov-jdk15on'
annotationProcessor "org.immutables:value"
implementation "org.immutables:value-annotations"
testImplementation project(':services:kvstore')
testImplementation project(':testutil')
testImplementation 'com.fasterxml.jackson.core:jackson-databind'

View File

@@ -38,6 +38,7 @@ dependencies {
implementation project(':metrics:core')
implementation project(':metrics:rocksdb')
implementation project(':services:kvstore')
implementation project(':util')
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.google.guava:guava'

View File

@@ -29,23 +29,11 @@ jar {
dependencies {
api project(':plugin-api')
api project(':util')
api 'org.slf4j:slf4j-api'
implementation project(':metrics:core')
implementation project(':metrics:rocksdb')
implementation 'com.google.guava:guava'
implementation 'io.prometheus:simpleclient'
implementation 'org.apache.tuweni:tuweni-bytes'
implementation 'org.rocksdb:rocksdbjni'
testImplementation project(':testutil')
testImplementation 'junit:junit'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.mockito:mockito-core'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}