Skip to content

Commit

Permalink
Bump to Logback 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brenuart committed Aug 30, 2022
1 parent 8a836f1 commit ae4ecc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
19 changes: 5 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
<!-- runtime dependencies -->
<jackson.version>2.13.3</jackson.version>
<java-uuid-generator.version>4.0.1</java-uuid-generator.version>
<logback.version>1.3.0-beta0</logback.version>
<logback.version>1.3.0</logback.version>

<!-- shaded runtime dependencies -->
<disruptor.version>3.4.4</disruptor.version>

<!-- test dependencies -->
<assertj.version>3.23.1</assertj.version>
<awaitility.version>4.2.0</awaitility.version>
<jakarta-servlet-api.version>5.0.0</jakarta-servlet-api.version>
<servlet-api.version>4.0.1</servlet-api.version>
<junit.version>5.9.0</junit.version>
<mockito.version>4.7.0</mockito.version>

Expand Down Expand Up @@ -161,9 +161,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${jakarta-servlet-api.version}</version>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet-api.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -720,15 +720,6 @@
<logback.version>1.2.11</logback.version>
<surefire.reportsSubDir>logback-${logback.version}</surefire.reportsSubDir>
</properties>
<dependencies>
<!-- Logback moved from javax.servlet to jakarta since version 1.3 -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>

<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ public void testSequenceGeneratorInContext() throws IOException {
SequenceNumberGenerator seqGenerator = mock(SequenceNumberGenerator.class);
context.setSequenceNumberGenerator(seqGenerator);
provider.setContext(context);

// Workaround for LOGBACK-1663 - can be removed once the issue is fixed upstream
assertThat(context.getSequenceNumberGenerator()).isNull();
when(context.getSequenceNumberGenerator()).thenReturn(seqGenerator);

provider.start();

// LoggingEvent is a mock -> it won't have its sequence number out of the generator -> mock the returned values
Expand Down

0 comments on commit ae4ecc2

Please sign in to comment.