Open justin-tay opened 3 months ago
We also ran into this issue when updating to version 4.2.2
. We currently have to resort to excluding tomcat whenever we want to use jetty or undertow via:
<dependency>
<groupId>dev.akkinoc.spring.boot</groupId>
<artifactId>logback-access-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>ch.qos.logback.access</groupId>
<artifactId>tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
What do you think @akkinoc?
Describe the problem you'd like to have solved
The current
logback-access-spring-boot-starter
has bothch.qos.logback.access:jetty12
andch.qos.logback.access:tomcat
as compile dependencies which then also pulls the respective jetty12 and tomcat server implementations. This makes it necessary to exclude the dependency that isn't used when using the starter.Describe the solution you'd like
It might be a better developer experience to have 2 separate starters similar to
spring-boot-starter-jetty
andspring-boot-starter-tomcat
eg.logback-access-spring-boot-starter-jetty
logback-access-spring-boot-starter-tomcat