Skip to content

Commit b7e559d

Browse files
authored
Merge pull request #196 from lizhanhui/develop
[Issue #195] Scoping log4j libraries to test
2 parents 544b57f + 11099b5 commit b7e559d

File tree

2 files changed

+8
-47
lines changed

2 files changed

+8
-47
lines changed

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
~ limitations under the License.
1717
-->
1818

19-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2022
<modelVersion>4.0.0</modelVersion>
2123

2224
<parent>
@@ -59,21 +61,26 @@
5961
<artifactId>slf4j-api</artifactId>
6062
<version>1.7.36</version>
6163
</dependency>
64+
65+
<!-- Test only dependencies follow -->
6266
<dependency>
6367
<groupId>org.apache.logging.log4j</groupId>
6468
<artifactId>log4j-slf4j-impl</artifactId>
6569
<version>2.17.2</version>
70+
<scope>test</scope>
6671
</dependency>
6772
<dependency>
6873
<groupId>org.apache.logging.log4j</groupId>
6974
<artifactId>log4j-core</artifactId>
7075
<version>2.17.2</version>
76+
<scope>test</scope>
7177
</dependency>
7278

7379
<dependency>
7480
<groupId>org.apache.logging.log4j</groupId>
7581
<artifactId>log4j-api</artifactId>
7682
<version>2.17.2</version>
83+
<scope>test</scope>
7784
</dependency>
7885
<dependency>
7986
<groupId>org.junit.jupiter</groupId>

src/main/resources/log4j2.xml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)