Skip to content

Commit

Permalink
CORE-15310: Upgrade CLI PF4J to 3.10 and SLF4J to 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
josephzunigadaly committed Sep 28, 2023
1 parent 31490c6 commit 05e7b37
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ quasarVersion = 0.9.1_r3-SNAPSHOT
reflectAsmVersion = 1.11.9
# SLF4J cannot be ugraded to 2.x due to CorDapps requiring the 1.7 <= x < 2.0
slf4jVersion=1.7.36
slf4jV2Version=2.0.6
# Snappy version used for serialization
snappyVersion=0.4
# Completely different version of Snappy used in Kafka client
Expand Down Expand Up @@ -136,7 +137,7 @@ jibCoreVersion=0.23.0
artifactoryPluginVersion = 4.28.2

# PF4J
pf4jVersion=3.9.0
pf4jVersion=3.10.0

# corda-cli plugin host
pluginHostVersion=5.1.0-beta+
Expand Down
9 changes: 9 additions & 0 deletions testing/e2e-test-utilities/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ plugins {
description 'E2E test utilities'

dependencies {
constraints {
implementation('org.slf4j:slf4j-api') {
version {
strictly slf4jV2Version
}
}

}

implementation "net.corda:corda-config-schema:$cordaApiVersion"

implementation "com.konghq:unirest-java:$unirestVersion"
Expand Down
5 changes: 5 additions & 0 deletions tools/plugins/db-config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ dependencies {
implementation("org.yaml:snakeyaml:$snakeyamlVersion") {
because "required until liquibase-core updates it's internal version of snakeYaml, currently using 1.33 which has CVE-2022-1471"
}
implementation('org.slf4j:slf4j-api') {
version {
strictly slf4jV2Version
}
}
}

// DO NOT DISTRIBUTE DRIVERS HERE WE ARE NOT LICENSED TO DISTRIBUTE
Expand Down
9 changes: 9 additions & 0 deletions tools/plugins/network/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ ext {
group 'net.corda.cli.deployment'

dependencies {
constraints {
implementation('org.slf4j:slf4j-api') {
version {
strictly slf4jV2Version
}
}

}

compileOnly "net.corda.cli.host:api:$pluginHostVersion"

implementation "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion"
Expand Down
9 changes: 9 additions & 0 deletions tools/plugins/package/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ ext {
group 'net.corda.cli.deployment'

dependencies {
constraints {
implementation('org.slf4j:slf4j-api') {
version {
strictly slf4jV2Version
}
}

}

compileOnly "net.corda.cli.host:api:$pluginHostVersion"

implementation project(':libs:packaging:packaging-verify')
Expand Down
5 changes: 5 additions & 0 deletions tools/plugins/topic-config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ dependencies {
because 'Kafka Client uses an older version of Snappy library which is exposed to CVE-2023-34455. ' +
'This might be resolved in the future versions of Kafka Client.'
}
implementation('org.slf4j:slf4j-api') {
version {
strictly slf4jV2Version
}
}
}

testImplementation 'org.jetbrains.kotlin:kotlin-stdlib'
Expand Down
5 changes: 5 additions & 0 deletions tools/plugins/virtual-node/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ dependencies {
implementation("org.yaml:snakeyaml:$snakeyamlVersion") {
because "required until liquibase-core updates it's internal version of snakeYaml, currently using 1.33 which has CVE-2022-1471"
}
implementation('org.slf4j:slf4j-api') {
version {
strictly slf4jV2Version
}
}
}

// DO NOT DISTRIBUTE DRIVERS HERE WE ARE NOT LICENSED TO DISTRIBUTE
Expand Down

0 comments on commit 05e7b37

Please sign in to comment.