gretty
gretty copied to clipboard
Cannot be used with SpringBoot due to lower logback
Latest Gretty cannot be used with SpringBoot due to Gretty use logback 1.1.3 that overrides the SpringBoot's logback, the exceptions is:
java.lang.AbstractMethodError: ch.qos.logback.classic.pattern.EnsureExceptionHandling.process(Lch/qos/logback/core/Context;Lch/qos/logback/core/pattern/Converter;)V
at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:86)
at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28)
at ch.qos.logback.classic.BasicConfigurator.configure(BasicConfigurator.java:50)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:164)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at org.slf4j.impl.StaticLoggerBinder.
I encounter exactly the same problem
I think this happens if you include the spring boot gradle plugin:
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
Try removing it.