user2172731 user2172731 - 1 year ago 272
Java Question

How do i change logback version in spring boot?

I want to use logback smtp appender in my spring boot application, but somehow spring boot default logback 1.1.7 dependency does not work well with SMTP appenders. How can I downgrade spring boot provided logback library from 1.1.7 to 1.1.6? I am using gradle for build management.


It worked after i tried Andy's Answer, so now my build.gradle file looks like this

buildscript {
ext['logback.version'] = '1.1.6'

Answer Source

Your best bet is to override the logback.version property. This will ensure that you get the desired version of Logback everywhere:

ext['logback.version'] = '1.1.6'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download