upgrade logback and log4j-slf4j (new artifact log4j-slf4j18-impl) to support slf4j api 1.8 (#3209)

* upgrade logback and version of log4j-slf4j support slf4j 1.8 (new artifact log4j-slf4j18-impl)

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
Olivier Lamy 2018-12-22 10:01:48 +10:00 committed by GitHub
parent bd4933b33c
commit ab2a8b0fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 16 deletions

View File

@ -39,7 +39,7 @@
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>2.9.7</version> <version>@jackson-databind.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>

View File

@ -19,49 +19,53 @@
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<!--maven.compiler.release>11</maven.compiler.release--> <!--maven.compiler.release>11</maven.compiler.release-->
<jetty.port.file>${project.build.directory}/jetty-run-mojo-annotation.txt</jetty.port.file> <jetty.port.file>${project.build.directory}/jetty-run-mojo-annotation.txt</jetty.port.file>
<annotation-api.version>1.3.2</annotation-api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version> <version>@servlet.api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.annotation</groupId> <groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId> <artifactId>javax.annotation-api</artifactId>
<version>${annotation-api.version}</version> <version>@annotation-api.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId> <artifactId>spring-boot-autoconfigure</artifactId>
<version>2.1.1.RELEASE</version> <version>@springboot.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>1.8.0-beta2</version> <version>@slf4j.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.apache.logging.log4j</groupId>
<artifactId>slf4j-simple</artifactId> <artifactId>log4j-slf4j18-impl</artifactId>
<version>1.8.0-beta2</version> <version>@log4j2.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<version>2.1.1.RELEASE</version> <version>@springboot.version@</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId> <artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion> </exclusion>
<!-- need this springboot issue to be fixed https://github.com/spring-projects/spring-boot/issues/12649 -->
<exclusion> <exclusion>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
</exclusion> </exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
</dependencies> </dependencies>
@ -97,12 +101,12 @@
<extension> <extension>
<groupId>javax.annotation</groupId> <groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId> <artifactId>javax.annotation-api</artifactId>
<version>${annotation-api.version}</version> <version>@annotation-api.version@</version>
</extension> </extension>
<extension> <extension>
<groupId>javax.annotation</groupId> <groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId> <artifactId>jsr250-api</artifactId>
<version>1.0</version> <version>@jsr250-api.version@</version>
</extension> </extension>
</extensions> </extensions>
</build> </build>

View File

@ -16,7 +16,7 @@ maven://org.slf4j/slf4j-api/${slf4j.version}|lib/slf4j/slf4j-api-${slf4j.version
lib/slf4j/slf4j-api-${slf4j.version}.jar lib/slf4j/slf4j-api-${slf4j.version}.jar
[ini] [ini]
slf4j.version?=1.7.25 slf4j.version?=1.8.0-beta2
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/slf4j/ jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/slf4j/
[license] [license]

View File

@ -19,7 +19,7 @@ log4j2-impl
slf4j-impl slf4j-impl
[files] [files]
maven://org.apache.logging.log4j/log4j-slf4j-impl/${log4j2.version}|lib/log4j2/log4j-slf4j-impl-${log4j2.version}.jar maven://org.apache.logging.log4j/log4j-slf4j18-impl/${log4j2.version}|lib/log4j2/log4j-slf4j18-impl-${log4j2.version}.jar
[lib] [lib]
lib/log4j2/log4j-slf4j-impl-${log4j2.version}.jar lib/log4j2/log4j-slf4j18-impl-${log4j2.version}.jar

View File

@ -45,7 +45,7 @@
<build-support.version>1.4</build-support.version> <build-support.version>1.4</build-support.version>
<slf4j.version>1.8.0-beta2</slf4j.version> <slf4j.version>1.8.0-beta2</slf4j.version>
<log4j2.version>2.11.1</log4j2.version> <log4j2.version>2.11.1</log4j2.version>
<logback.version>1.2.3</logback.version> <logback.version>1.3.0-alpha4</logback.version>
<spring-version>5.1.1.RELEASE</spring-version> <spring-version>5.1.1.RELEASE</spring-version>
<jetty-test-policy.version>1.2</jetty-test-policy.version> <jetty-test-policy.version>1.2</jetty-test-policy.version>
<servlet.api.version>4.0.1</servlet.api.version> <servlet.api.version>4.0.1</servlet.api.version>
@ -79,6 +79,12 @@
<!-- testing --> <!-- testing -->
<jetty.test.version>5.2</jetty.test.version> <jetty.test.version>5.2</jetty.test.version>
<!-- springboot is only used for jetty-maven-plugin it test
otherwise depending on Spring Boot might be chicken and egg issue :) -->
<springboot.version>2.1.1.RELEASE</springboot.version>
<jsr250-api.version>1.0</jsr250-api.version>
<annotation-api.version>1.3.2</annotation-api.version>
<jackson-databind.version>2.9.7</jackson-databind.version>
</properties> </properties>
<licenses> <licenses>