[slf4j-dev] [JIRA] Updates for SLF4J-539: Gradle build fails with SLF4J 1.7.34

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Jan 25 11:17:00 CET 2022


SLF4J / SLF4J-539 [Open]
Gradle build fails with SLF4J 1.7.34

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-539

==============================
 Issue created
------------------------------

Alexander Veit created this issue on 25/Jan/22 11:05 AM
Summary:              Gradle build fails with SLF4J 1.7.34
Issue Type:           Bug
Affects Versions:     1.7.34
Assignee:             SLF4J developers list
Created:              25/Jan/22 11:05 AM
Priority:             Major
Reporter:             Alexander Veit
Description:
  {noformat}
  > Task :copyLibraries FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':copyLibraries'.
  > Could not resolve all files for configuration ':api'.
     > Could not find org.slf4j:slf4j-reload4j:${project.version}.
       Required by:
           project : > org.slf4j:slf4j-log4j12:1.7.34
  {noformat}
  
  {{build.gradle}} to reproduce the error:
  {noformat}
  plugins {
      id 'java-library'
  }
  
  repositories {
      mavenCentral()
  }
  
  configurations.api.setCanBeResolved(true)
  
  dependencies {
      api group: 'org.slf4j', name: 'slf4j-api',      version: '1.7.+'
      api group: 'org.slf4j', name: 'slf4j-log4j12',  version: '1.7.+'
      api group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.+'
      api group: 'org.slf4j', name: 'jul-to-slf4j',   version: '1.7.+'
  }
  
  clean {
      delete "${rootDir}/lib"
  }
  
  task copyLibraries(type: Copy) {
      group = 'build'
      description = 'Copies libraries to the project\'s lib directory'
      from configurations.api + configurations.testCompileClasspath
      into 'lib'
  }
  {noformat}
  
  Command:
  {noformat}
  gradle clean copyLibraries --refresh-dependencies --warning-mode all
  {noformat}
  
  The new dependency org.slf4j:slf4j-reload4j that causes the problem is new for 1.7.34 and as far as I can tell from the SLF4J website we actually don't need it.


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list