suztomo edited a comment on pull request #13073:
URL: https://github.com/apache/beam/pull/13073#issuecomment-723201549


   @iemejia 
   
   > Can you spot which dependency is overwriting the version ?
   
   BeamModulePlugin.groovy `force`s the library version listed in the file.
   
   ```
       def log4j_version = "2.13.3"
   ...
           log4j_core                                  : 
"org.apache.logging.log4j:log4j-core:$log4j_version",
   ...
             config.resolutionStrategy {
   ...
               def librariesWithVersion = project.library.java.values().findAll 
{ it.split(':').size() > 2 }
               force librariesWithVersion
             }
   ```
   
   
   log4j-api-2.4.1.jar has the missing class, while log4j-api-2.13.3.jar does 
not have it.
   
   ```
   suztomo-macbookpro44% jar tf log4j-api-2.4.1.jar |grep Reflection
   org/apache/logging/log4j/util/ReflectionUtil$PrivateSecurityManager.class
   org/apache/logging/log4j/util/ReflectionUtil.class
   suztomo-macbookpro44% jar tf log4j-api-2.13.3.jar |grep Reflection
   suztomo-macbookpro44% 
   ```
   
   It seems that org.slf4j:slf4j-log4j12:1.7.30 holds 
`org.apache.logging.slf4j.Log4jLoggerFactory`, the caller of the missing class. 
This artifact does not seem compatible with 
`org.apache.logging.log4j:log4j-core:2.13.3`.


----------------------------------------------------------------
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.

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


Reply via email to