Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
bbf0932f
Commit
bbf0932f
authored
Dec 07, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude jcl-over-slf4j in favour of spring-jcl
Closes gh-15392
parent
2cd3cff6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
37 deletions
+32
-37
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+6
-0
pom.xml
...pring-boot-starters/spring-boot-starter-data-solr/pom.xml
+0
-10
pom.xml
spring-boot-project/spring-boot-test/pom.xml
+0
-5
pom.xml
...boot-project/spring-boot-tools/spring-boot-loader/pom.xml
+0
-5
pom.xml
spring-boot-project/spring-boot/pom.xml
+0
-5
LoggingApplicationListenerTests.java
...boot/context/logging/LoggingApplicationListenerTests.java
+11
-8
LogbackLoggingSystemTests.java
...ework/boot/logging/logback/LogbackLoggingSystemTests.java
+3
-4
pom.xml
...ng-boot-samples/spring-boot-sample-data-cassandra/pom.xml
+6
-0
pom.xml
...integration-tests/spring-boot-launch-script-tests/pom.xml
+6
-0
No files found.
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
bbf0932f
...
@@ -1696,6 +1696,12 @@
...
@@ -1696,6 +1696,12 @@
<groupId>
org.apache.solr
</groupId>
<groupId>
org.apache.solr
</groupId>
<artifactId>
solr-solrj
</artifactId>
<artifactId>
solr-solrj
</artifactId>
<version>
${solr.version}
</version>
<version>
${solr.version}
</version>
<exclusions>
<exclusion>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.solr
</groupId>
<groupId>
org.apache.solr
</groupId>
...
...
spring-boot-project/spring-boot-starters/spring-boot-starter-data-solr/pom.xml
View file @
bbf0932f
...
@@ -22,16 +22,6 @@
...
@@ -22,16 +22,6 @@
<dependency>
<dependency>
<groupId>
org.apache.solr
</groupId>
<groupId>
org.apache.solr
</groupId>
<artifactId>
solr-solrj
</artifactId>
<artifactId>
solr-solrj
</artifactId>
<exclusions>
<exclusion>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.data
</groupId>
<groupId>
org.springframework.data
</groupId>
...
...
spring-boot-project/spring-boot-test/pom.xml
View file @
bbf0932f
...
@@ -172,11 +172,6 @@
...
@@ -172,11 +172,6 @@
<artifactId>
kotlin-runtime
</artifactId>
<artifactId>
kotlin-runtime
</artifactId>
<scope>
test
</scope>
<scope>
test
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<artifactId>
slf4j-api
</artifactId>
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/pom.xml
View file @
bbf0932f
...
@@ -21,11 +21,6 @@
...
@@ -21,11 +21,6 @@
<optional>
true
</optional>
<optional>
true
</optional>
</dependency>
</dependency>
<!-- Test -->
<!-- Test -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<artifactId>
logback-classic
</artifactId>
...
...
spring-boot-project/spring-boot/pom.xml
View file @
bbf0932f
...
@@ -373,11 +373,6 @@
...
@@ -373,11 +373,6 @@
<artifactId>
postgresql
</artifactId>
<artifactId>
postgresql
</artifactId>
<scope>
test
</scope>
<scope>
test
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-context-support
</artifactId>
<artifactId>
spring-context-support
</artifactId>
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java
View file @
bbf0932f
...
@@ -26,15 +26,16 @@ import java.util.logging.Handler;
...
@@ -26,15 +26,16 @@ import java.util.logging.Handler;
import
java.util.logging.LogManager
;
import
java.util.logging.LogManager
;
import
java.util.logging.Logger
;
import
java.util.logging.Logger
;
import
ch.qos.logback.classic.LoggerContext
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.apache.commons.logging.LogFactory
;
import
org.apache.commons.logging.impl.SLF4JLogFactory
;
import
org.junit.After
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Rule
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.slf4j.bridge.SLF4JBridgeHandler
;
import
org.slf4j.bridge.SLF4JBridgeHandler
;
import
org.slf4j.impl.StaticLoggerBinder
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.context.event.ApplicationFailedEvent
;
import
org.springframework.boot.context.event.ApplicationFailedEvent
;
...
@@ -89,9 +90,11 @@ public class LoggingApplicationListenerTests {
...
@@ -89,9 +90,11 @@ public class LoggingApplicationListenerTests {
private
final
LoggingApplicationListener
initializer
=
new
LoggingApplicationListener
();
private
final
LoggingApplicationListener
initializer
=
new
LoggingApplicationListener
();
private
final
SLF4JLogFactory
logFactory
=
new
SLF4JLogFactory
();
private
final
LoggerContext
loggerContext
=
(
LoggerContext
)
StaticLoggerBinder
.
getSingleton
().
getLoggerFactory
();
private
final
Log
logger
=
this
.
logFactory
.
getInstance
(
getClass
());
private
final
ch
.
qos
.
logback
.
classic
.
Logger
logger
=
this
.
loggerContext
.
getLogger
(
getClass
());
private
final
SpringApplication
springApplication
=
new
SpringApplication
();
private
final
SpringApplication
springApplication
=
new
SpringApplication
();
...
@@ -404,9 +407,9 @@ public class LoggingApplicationListenerTests {
...
@@ -404,9 +407,9 @@ public class LoggingApplicationListenerTests {
this
.
initializer
.
initialize
(
this
.
context
.
getEnvironment
(),
this
.
initializer
.
initialize
(
this
.
context
.
getEnvironment
(),
this
.
context
.
getClassLoader
());
this
.
context
.
getClassLoader
());
this
.
logger
.
debug
(
"testatdebug"
);
this
.
logger
.
debug
(
"testatdebug"
);
this
.
logger
.
fatal
(
"testatfatal
"
);
this
.
logger
.
error
(
"testaterror
"
);
assertThat
(
this
.
outputCapture
.
toString
()).
doesNotContain
(
"testatdebug"
)
assertThat
(
this
.
outputCapture
.
toString
()).
doesNotContain
(
"testatdebug"
)
.
doesNotContain
(
"testat
fatal
"
);
.
doesNotContain
(
"testat
error
"
);
}
}
@Test
@Test
...
@@ -416,9 +419,9 @@ public class LoggingApplicationListenerTests {
...
@@ -416,9 +419,9 @@ public class LoggingApplicationListenerTests {
this
.
initializer
.
initialize
(
this
.
context
.
getEnvironment
(),
this
.
initializer
.
initialize
(
this
.
context
.
getEnvironment
(),
this
.
context
.
getClassLoader
());
this
.
context
.
getClassLoader
());
this
.
logger
.
debug
(
"testatdebug"
);
this
.
logger
.
debug
(
"testatdebug"
);
this
.
logger
.
fatal
(
"testatfatal
"
);
this
.
logger
.
error
(
"testaterror
"
);
assertThat
(
this
.
outputCapture
.
toString
()).
doesNotContain
(
"testatdebug"
)
assertThat
(
this
.
outputCapture
.
toString
()).
doesNotContain
(
"testatdebug"
)
.
doesNotContain
(
"testat
fatal
"
);
.
doesNotContain
(
"testat
error
"
);
}
}
@Test
@Test
...
@@ -657,7 +660,7 @@ public class LoggingApplicationListenerTests {
...
@@ -657,7 +660,7 @@ public class LoggingApplicationListenerTests {
}
}
private
void
assertTraceEnabled
(
String
name
,
boolean
expected
)
{
private
void
assertTraceEnabled
(
String
name
,
boolean
expected
)
{
assertThat
(
this
.
log
Factory
.
getInstance
(
name
).
isTraceEnabled
())
assertThat
(
this
.
log
gerContext
.
getLogger
(
name
).
isTraceEnabled
())
.
isEqualTo
(
expected
);
.
isEqualTo
(
expected
);
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java
View file @
bbf0932f
...
@@ -31,8 +31,6 @@ import ch.qos.logback.core.ConsoleAppender;
...
@@ -31,8 +31,6 @@ import ch.qos.logback.core.ConsoleAppender;
import
ch.qos.logback.core.CoreConstants
;
import
ch.qos.logback.core.CoreConstants
;
import
ch.qos.logback.core.rolling.RollingFileAppender
;
import
ch.qos.logback.core.rolling.RollingFileAppender
;
import
ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy
;
import
ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.impl.SLF4JLogFactory
;
import
org.hamcrest.Matcher
;
import
org.hamcrest.Matcher
;
import
org.hamcrest.Matchers
;
import
org.hamcrest.Matchers
;
import
org.junit.After
;
import
org.junit.After
;
...
@@ -87,7 +85,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
...
@@ -87,7 +85,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
private
final
LogbackLoggingSystem
loggingSystem
=
new
LogbackLoggingSystem
(
private
final
LogbackLoggingSystem
loggingSystem
=
new
LogbackLoggingSystem
(
getClass
().
getClassLoader
());
getClass
().
getClassLoader
());
private
Log
logger
;
private
Log
ger
logger
;
private
LoggingInitializationContext
initializationContext
;
private
LoggingInitializationContext
initializationContext
;
...
@@ -96,7 +94,8 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
...
@@ -96,7 +94,8 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
@Before
@Before
public
void
setup
()
{
public
void
setup
()
{
this
.
loggingSystem
.
cleanUp
();
this
.
loggingSystem
.
cleanUp
();
this
.
logger
=
new
SLF4JLogFactory
().
getInstance
(
getClass
().
getName
());
this
.
logger
=
((
LoggerContext
)
StaticLoggerBinder
.
getSingleton
()
.
getLoggerFactory
()).
getLogger
(
getClass
());
this
.
environment
=
new
MockEnvironment
();
this
.
environment
=
new
MockEnvironment
();
this
.
initializationContext
=
new
LoggingInitializationContext
(
this
.
environment
);
this
.
initializationContext
=
new
LoggingInitializationContext
(
this
.
environment
);
}
}
...
...
spring-boot-samples/spring-boot-sample-data-cassandra/pom.xml
View file @
bbf0932f
...
@@ -35,6 +35,12 @@
...
@@ -35,6 +35,12 @@
<artifactId>
cassandra-unit-spring
</artifactId>
<artifactId>
cassandra-unit-spring
</artifactId>
<version>
3.5.0.1
</version>
<version>
3.5.0.1
</version>
<scope>
test
</scope>
<scope>
test
</scope>
<exclusions>
<exclusion>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/pom.xml
View file @
bbf0932f
...
@@ -34,6 +34,12 @@
...
@@ -34,6 +34,12 @@
<artifactId>
docker-java
</artifactId>
<artifactId>
docker-java
</artifactId>
<version>
3.0.14
</version>
<version>
3.0.14
</version>
<scope>
test
</scope>
<scope>
test
</scope>
<exclusions>
<exclusion>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment