Skip to content

Commit 77129a6

Browse files
committed
Re-enable some dependencies
1 parent 232f3b0 commit 77129a6

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

log4j-core-its/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@
153153
<artifactId>log4j</artifactId>
154154
<scope>test</scope>
155155
</dependency>
156+
<!-- Logback performance tests -->
157+
<dependency>
158+
<groupId>ch.qos.logback</groupId>
159+
<artifactId>logback-classic</artifactId>
160+
<scope>test</scope>
161+
</dependency>
156162
<!-- SLF4J tests -->
157163
<dependency>
158164
<groupId>org.slf4j</groupId>
@@ -178,6 +184,29 @@
178184
</dependencies>
179185
<build>
180186
<plugins>
187+
188+
<!--
189+
~ Unban Logback.
190+
-->
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-enforcer-plugin</artifactId>
194+
<executions>
195+
<execution>
196+
<id>ban-logging-dependencies</id>
197+
<configuration>
198+
<rules>
199+
<bannedDependencies>
200+
<includes>
201+
<include>ch.qos.logback:*:*:*:test</include>
202+
</includes>
203+
</bannedDependencies>
204+
</rules>
205+
</configuration>
206+
</execution>
207+
</executions>
208+
</plugin>
209+
181210
<plugin>
182211
<groupId>org.apache.maven.plugins</groupId>
183212
<artifactId>maven-failsafe-plugin</artifactId>
@@ -195,6 +224,7 @@
195224
org.apache.logging.log4j.categories.Appenders$Jms</groups>
196225
</configuration>
197226
</plugin>
227+
198228
<plugin>
199229
<groupId>org.apache.maven.plugins</groupId>
200230
<artifactId>maven-jar-plugin</artifactId>
@@ -213,6 +243,7 @@
213243
</execution>
214244
</executions>
215245
</plugin>
246+
216247
<plugin>
217248
<groupId>org.apache.maven.plugins</groupId>
218249
<artifactId>maven-source-plugin</artifactId>
@@ -234,12 +265,14 @@
234265
</execution>
235266
</executions>
236267
</plugin>
268+
237269
<plugin>
238270
<artifactId>maven-surefire-plugin</artifactId>
239271
<configuration>
240272
<skip>true</skip>
241273
</configuration>
242274
</plugin>
275+
243276
</plugins>
244277
</build>
245278
</project>

log4j-osgi-test/pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
<artifactId>junit-vintage-engine</artifactId>
8787
<scope>test</scope>
8888
</dependency>
89+
<dependency>
90+
<groupId>ch.qos.logback</groupId>
91+
<artifactId>logback-classic</artifactId>
92+
<scope>test</scope>
93+
</dependency>
8994
<dependency>
9095
<groupId>org.apache.felix</groupId>
9196
<artifactId>org.apache.felix.framework</artifactId>
@@ -125,6 +130,28 @@
125130
<build>
126131
<plugins>
127132

133+
<!--
134+
~ Unban Logback.
135+
-->
136+
<plugin>
137+
<groupId>org.apache.maven.plugins</groupId>
138+
<artifactId>maven-enforcer-plugin</artifactId>
139+
<executions>
140+
<execution>
141+
<id>ban-logging-dependencies</id>
142+
<configuration>
143+
<rules>
144+
<bannedDependencies>
145+
<includes>
146+
<include>ch.qos.logback:*:*:*:test</include>
147+
</includes>
148+
</bannedDependencies>
149+
</rules>
150+
</configuration>
151+
</execution>
152+
</executions>
153+
</plugin>
154+
128155
<plugin>
129156
<groupId>org.ops4j.pax.exam</groupId>
130157
<artifactId>exam-maven-plugin</artifactId>

log4j-taglib/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
<artifactId>log4j-core-test</artifactId>
7272
<scope>test</scope>
7373
</dependency>
74+
<dependency>
75+
<groupId>commons-logging</groupId>
76+
<artifactId>commons-logging</artifactId>
77+
<scope>test</scope>
78+
</dependency>
7479
<dependency>
7580
<groupId>org.junit.jupiter</groupId>
7681
<artifactId>junit-jupiter-engine</artifactId>

log4j-web/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
<artifactId>log4j-core-test</artifactId>
6464
<scope>test</scope>
6565
</dependency>
66+
<dependency>
67+
<groupId>commons-logging</groupId>
68+
<artifactId>commons-logging</artifactId>
69+
<scope>test</scope>
70+
</dependency>
6671
<dependency>
6772
<groupId>org.hamcrest</groupId>
6873
<artifactId>hamcrest</artifactId>

0 commit comments

Comments
 (0)