racevedoo commented on issue #3620:
URL: https://github.com/apache/iceberg/issues/3620#issuecomment-983992864


   Another option is to exclude log4j from the nebula dependency management 
plugin config (apparently it does not work well with POMs - check 
[here](https://github.com/nebula-plugins/nebula-dependency-recommender-plugin#8-notes-on-poms-generated-by-gradle-maven-publish)).
 This is probably a simpler solution that solves the issue as well:
   
   ```patch
   diff --git a/build.gradle b/build.gradle
   index 38388747..5103cdd5 100644
   --- a/build.gradle
   +++ b/build.gradle
   @@ -111,13 +111,13 @@ subprojects {
      targetCompatibility = '1.8'
    
      dependencies {
   -    implementation 'org.slf4j:slf4j-api'
   +    implementation 'org.slf4j:slf4j-api:1.7.30'
        implementation 'com.github.stephenc.findbugs:findbugs-annotations'
    
        testImplementation 'org.junit.vintage:junit-vintage-engine'
        testImplementation 'org.junit.jupiter:junit-jupiter-engine'
        testImplementation 'org.junit.jupiter:junit-jupiter'
   -    testImplementation 'org.slf4j:slf4j-simple'
   +    testImplementation 'org.slf4j:slf4j-simple:1.7.30'
        testImplementation 'org.mockito:mockito-core'
        testImplementation 'org.assertj:assertj-core'
      }
   diff --git a/spark/v3.0/build.gradle b/spark/v3.0/build.gradle
   index 2ad0fb00..f1edc5e1 100644
   --- a/spark/v3.0/build.gradle
   +++ b/spark/v3.0/build.gradle
   @@ -203,7 +203,7 @@ project(':iceberg-spark:iceberg-spark3-runtime') {
    
        integrationImplementation 
"org.apache.spark:spark-hive_2.12:${sparkVersion}"
        integrationImplementation 'org.junit.vintage:junit-vintage-engine'
   -    integrationImplementation 'org.slf4j:slf4j-simple'
   +    integrationImplementation 'org.slf4j:slf4j-simple:1.7.30'
        integrationImplementation project(path: ':iceberg-api', configuration: 
'testArtifacts')
        integrationImplementation project(path: ':iceberg-hive-metastore', 
configuration: 'testArtifacts')
        integrationImplementation project(path: 
':iceberg-spark:iceberg-spark3', configuration: 'testArtifacts')
   diff --git a/spark/v3.1/build.gradle b/spark/v3.1/build.gradle
   index 55e76942..9d4030b9 100644
   --- a/spark/v3.1/build.gradle
   +++ b/spark/v3.1/build.gradle
   @@ -203,7 +203,7 @@ project(':iceberg-spark:iceberg-spark-3.1-runtime_2.12') 
{
    
        integrationImplementation 
"org.apache.spark:spark-hive_2.12:${sparkVersion}"
        integrationImplementation 'org.junit.vintage:junit-vintage-engine'
   -    integrationImplementation 'org.slf4j:slf4j-simple'
   +    integrationImplementation 'org.slf4j:slf4j-simple:1.7.30'
        integrationImplementation project(path: ':iceberg-api', configuration: 
'testArtifacts')
        integrationImplementation project(path: ':iceberg-hive-metastore', 
configuration: 'testArtifacts')
        integrationImplementation project(path: 
':iceberg-spark:iceberg-spark-3.1_2.12', configuration: 'testArtifacts')
   diff --git a/spark/v3.2/build.gradle b/spark/v3.2/build.gradle
   index c85c0fde..dcb8f20b 100644
   --- a/spark/v3.2/build.gradle
   +++ b/spark/v3.2/build.gradle
   @@ -205,7 +205,7 @@ project(':iceberg-spark:iceberg-spark-3.2-runtime_2.12') 
{
    
        integrationImplementation 
"org.apache.spark:spark-hive_2.12:${sparkVersion}"
        integrationImplementation 'org.junit.vintage:junit-vintage-engine'
   -    integrationImplementation 'org.slf4j:slf4j-simple'
   +    integrationImplementation 'org.slf4j:slf4j-simple:1.7.30'
        integrationImplementation project(path: ':iceberg-api', configuration: 
'testArtifacts')
        integrationImplementation project(path: ':iceberg-hive-metastore', 
configuration: 'testArtifacts')
        integrationImplementation project(path: 
':iceberg-spark:iceberg-spark-3.2_2.12', configuration: 'testArtifacts')
   diff --git a/versions.props b/versions.props
   index abe0f80c..65b6a7a7 100644
   --- a/versions.props
   +++ b/versions.props
   @@ -1,4 +1,3 @@
   -org.slf4j:* = 1.7.25
    org.apache.avro:avro = 1.10.1
    org.apache.calcite:* = 1.10.0
    org.apache.flink:* = 1.12.5
   
   
   ```
   
   Took the liberty to change the slf4j version to 1.7.30 (that was the version 
that was being resolved to anyway)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to