Skip to content

Commit

Permalink
Use Besu BOM
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Dec 10, 2024
1 parent d31d198 commit 66a45bb
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 162 deletions.
18 changes: 2 additions & 16 deletions acceptance-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,14 @@ tasks.register('acceptanceTests', Test) {

dependencies {
testImplementation project(":native:compress")
testImplementation project(":sequencer")

testImplementation "${besuArtifactGroup}:besu-datatypes"
testImplementation "${besuArtifactGroup}:evm"
testImplementation "${besuArtifactGroup}:plugin-api"
testImplementation project(":sequencer")

testImplementation "${besuArtifactGroup}.internal:algorithms"
testImplementation "${besuArtifactGroup}.internal:api"
testImplementation "${besuArtifactGroup}.internal:core"
testImplementation "${besuArtifactGroup}.internal:dsl"
testImplementation "${besuArtifactGroup}.internal:eth"
testImplementation "${besuArtifactGroup}.internal:metrics-core"

testImplementation 'io.tmio:tuweni-bytes'
testImplementation 'io.tmio:tuweni-units'

testImplementation 'org.web3j:abi'
testImplementation 'org.web3j:besu'
testImplementation 'org.web3j:core'
testImplementation 'net.consensys.linea.zktracer:arithmetization'

testImplementation 'org.awaitility:awaitility'
testImplementation 'com.splunk.logging:splunk-library-javalogging'
}

test.enabled = false
14 changes: 14 additions & 0 deletions gradle/allowed-licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"moduleLicense": "Eclipse Distribution License - v 1.0",
"moduleLicenseUrl": "http://www.eclipse.org/legal/epl-v10.html"
},
{
"moduleLicense": "Eclipse Public License - v 1.0",
"moduleLicenseUrl": "http://www.eclipse.org/legal/epl-v10.html"
},
{
"moduleLicense": "Eclipse Public License - v 2.0",
"moduleLicenseUrl": "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt"
Expand Down Expand Up @@ -64,6 +68,16 @@
{
"moduleName": "org.jetbrains.kotlin:kotlin-stdlib-common",
"moduleVersion": "1.9.22"
},
{
"moduleLicense": "CDDL-1.0",
"moduleVersion": "3.0.2",
"moduleName": "org.jupnp:org.jupnp"
},
{
"moduleLicense": "CDDL-1.0",
"moduleVersion": "3.0.2",
"moduleName": "org.jupnp:org.jupnp.support"
}
]
}
17 changes: 7 additions & 10 deletions gradle/common-dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,21 @@
dependencies {
api 'org.slf4j:slf4j-api'

implementation 'org.apache.logging.log4j:log4j-api'
implementation 'org.apache.logging.log4j:log4j-core'
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl'

implementation 'commons-io:commons-io'
implementation 'com.slack.api:slack-api-client'

testImplementation 'org.apache.commons:commons-lang3'
testImplementation 'com.google.guava:guava'
testImplementation 'org.assertj:assertj-core'

testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'

testImplementation 'org.mockito:mockito-core'
testImplementation 'org.mockito:mockito-junit-jupiter'

testImplementation "org.wiremock:wiremock"
testImplementation 'org.wiremock:wiremock'

testRuntimeOnly 'org.apache.logging.log4j:log4j-api'
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
testRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j2-impl'

testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
109 changes: 7 additions & 102 deletions gradle/dependency-management.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,121 +44,26 @@ repositories {
mavenLocal()
}

configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}

apply plugin: 'io.spring.dependency-management'

dependencyManagement {
applyMavenExclusions = false
generatedPomCustomization {
enabled = false
}
imports {
mavenBom "${besuArtifactGroup}:bom:${besuVersion}"
}

dependencies {
dependencySet(group: "net.consensys.linea.zktracer", version: "${arithmetizationVersion}") {
entry "arithmetization"
}

// Besu dependencies
dependencySet(group: "${besuArtifactGroup}", version: "${besuVersion}") {
entry "besu-datatypes"
entry "evm"
entry "plugin-api"
}

// Besu internal dependencies
dependencySet(group: "${besuArtifactGroup}.internal", version: "${besuVersion}") {
entry "algorithms"
entry "api"
entry "core"
entry "dsl"
entry "eth"
entry "rlp"
entry "besu"
}

dependencySet(group: 'ch.qos.logback', version: '1.5.6') {
entry 'logback-core'
entry 'logback-classic'
}

dependency 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
dependency 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2'
dependency 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'

dependency 'com.google.auto.service:auto-service:1.1.1'

dependency 'com.google.guava:guava:33.3.0-jre'

dependency 'commons-io:commons-io:2.16.1'

dependency 'com.slack.api:slack-api-client:1.32.1'

dependency 'com.splunk.logging:splunk-library-javalogging:1.11.8'

dependencySet(group: 'info.picocli', version: '4.7.6') {
entry 'picocli'
entry 'picocli-codegen'
}

dependency 'com.squareup.okhttp3:okhttp:4.12.0'

dependencySet(group: 'io.tmio', version: '2.4.2') {
entry 'tuweni-bytes'
entry 'tuweni-net'
entry 'tuweni-toml'
entry 'tuweni-units'
}

dependency 'io.vertx:vertx-core:4.5.9'

dependency 'net.java.dev.jna:jna:5.14.0'

dependency 'org.assertj:assertj-core:3.26.3'

dependency 'org.apache.commons:commons-lang3:3.17.0'

dependencySet(group: 'org.apache.logging.log4j', version: '2.23.1') {
entry 'log4j-api'
entry 'log4j-core'
entry 'log4j-slf4j2-impl'
}

dependency 'org.awaitility:awaitility:4.2.2'

dependencySet(group: 'org.bouncycastle', version: '1.78.1') {
entry 'bcpkix-jdk18on'
entry 'bcprov-jdk18on'
entry 'jcajce'
}

dependency 'org.hibernate.validator:hibernate-validator:8.0.1.Final'

dependencySet(group: 'org.junit.jupiter', version: '5.11.0') {
entry 'junit-jupiter-api'
entry 'junit-jupiter-engine'
entry 'junit-jupiter-params'
}
dependency 'org.junit.vintage:junit-vintage-engine:5.11.0'

dependencySet(group: 'org.mockito', version: '5.13.0') {
entry 'mockito-core'
entry 'mockito-junit-jupiter'
}

dependency 'org.slf4j:slf4j-api:2.0.16'

dependencySet(group: 'org.web3j', version: '4.12.1') {
entry 'abi'
entry 'besu'
entry 'core'
entry 'crypto'
}
dependency 'com.google.code.gson:gson:2.11.0'

dependency "org.wiremock:wiremock:3.9.1"
// ToDo: remove when fixed in Besu, force version to avoid conflict with previous version
dependency 'org.apache.logging.log4j:log4j-api:2.24.1'
dependency 'org.apache.logging.log4j:log4j-core:2.24.1'
}
}
48 changes: 14 additions & 34 deletions sequencer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,49 +32,29 @@ dependencies {
// annotationProcessor generates the file META-INF/services/org.hyperledger.besu.plugin.BesuPlugin
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly "${besuArtifactGroup}:besu-datatypes"
compileOnly "${besuArtifactGroup}:evm"
compileOnly "${besuArtifactGroup}:plugin-api"
implementation "${besuArtifactGroup}.internal:algorithms"
compileOnly "${besuArtifactGroup}.internal:api"
compileOnly "${besuArtifactGroup}.internal:core"
compileOnly "${besuArtifactGroup}.internal:rlp"

compileOnly 'com.google.auto.service:auto-service'
compileOnly 'com.google.auto.service:auto-service-annotations'

implementation 'info.picocli:picocli'
implementation project(":native:compress")

compileOnly 'io.vertx:vertx-core'
implementation "${besuArtifactGroup}:besu-datatypes"
implementation "${besuArtifactGroup}:evm"
implementation "${besuArtifactGroup}:plugin-api"
implementation "${besuArtifactGroup}.internal:algorithms"
implementation "${besuArtifactGroup}.internal:api"
implementation "${besuArtifactGroup}.internal:core"
implementation "${besuArtifactGroup}.internal:rlp"

compileOnly 'com.squareup.okhttp3:okhttp'
implementation 'com.google.auto.service:auto-service'

implementation project(":native:compress")
implementation 'com.google.code.gson:gson'

implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
implementation 'net.consensys.linea.zktracer:arithmetization'

implementation 'io.tmio:tuweni-bytes'
implementation 'io.tmio:tuweni-units'
implementation 'io.tmio:tuweni-toml'

implementation 'org.bouncycastle:bcprov-jdk18on'
implementation 'org.hibernate.validator:hibernate-validator'

implementation ('net.consensys.linea.zktracer:arithmetization') {
transitive = false
}

testImplementation "${besuArtifactGroup}:evm"
testImplementation "${besuArtifactGroup}:besu-datatypes"
testImplementation "${besuArtifactGroup}.internal:core"
testImplementation "${besuArtifactGroup}.internal:rlp"
testImplementation "${besuArtifactGroup}:plugin-api"
testImplementation "${besuArtifactGroup}.internal:besu"
testImplementation "org.awaitility:awaitility"

// workaround for bug https://github.com/dnsjava/dnsjava/issues/329, remove when upgraded upstream
testImplementation 'dnsjava:dnsjava:3.6.1'
testImplementation 'info.picocli:picocli'

testImplementation 'org.awaitility:awaitility'
}

configurations {
Expand Down

0 comments on commit 66a45bb

Please sign in to comment.