Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

前端 未结 3 897
死守一世寂寞
死守一世寂寞 2020-12-19 18:13

some problems with java and slf4j Made project using idea and it is ok. But in case I try to make jar with gradle I have some problems.

build.gradle

         


        
3条回答
  •  执笔经年
    2020-12-19 18:41

    dependencies {
        compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
        testCompile group: 'junit', name: 'junit', version: '4.+'
        compile 'ch.qos.logback:logback-core:1.1.6'
        compile 'ch.qos.logback:logback-classic:1.1.6'
        compile 'org.slf4j:slf4j-api:1.7.18'
    }
    

提交回复
热议问题