Skip to content

Commit a651e3a

Browse files
Merge pull request #129 from SAP/secure-spring-log4j
Secure Log4j version in sample-spring-boot
2 parents 9869166 + 594e97b commit a651e3a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

sample-spring-boot/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,47 @@
191191
</property>
192192
</activation>
193193
<dependencies>
194+
<dependency>
195+
<groupId>org.apache.logging.log4j</groupId>
196+
<artifactId>log4j-api</artifactId>
197+
<version>2.17.0</version>
198+
</dependency>
199+
<dependency>
200+
<groupId>org.apache.logging.log4j</groupId>
201+
<artifactId>log4j-core</artifactId>
202+
<version>2.17.0</version>
203+
</dependency>
204+
<dependency>
205+
<groupId>org.apache.logging.log4j</groupId>
206+
<artifactId>log4j-slf4j-impl</artifactId>
207+
<version>2.17.0</version>
208+
</dependency>
209+
<dependency>
210+
<groupId>org.apache.logging.log4j</groupId>
211+
<artifactId>log4j-jul</artifactId>
212+
<version>2.17.0</version>
213+
</dependency>
194214
<dependency>
195215
<groupId>org.springframework.boot</groupId>
196216
<artifactId>spring-boot-starter-log4j2</artifactId>
217+
<exclusions>
218+
<exclusion>
219+
<groupId>org.apache.logging.log4j</groupId>
220+
<artifactId>log4j-api</artifactId>
221+
</exclusion>
222+
<exclusion>
223+
<groupId>org.apache.logging.log4j</groupId>
224+
<artifactId>log4j-core</artifactId>
225+
</exclusion>
226+
<exclusion>
227+
<groupId>org.apache.logging.log4j</groupId>
228+
<artifactId>log4j-slf4j-impl</artifactId>
229+
</exclusion>
230+
<exclusion>
231+
<groupId>org.apache.logging.log4j</groupId>
232+
<artifactId>log4j-jul</artifactId>
233+
</exclusion>
234+
</exclusions>
197235
</dependency>
198236
<dependency>
199237
<groupId>com.sap.hcp.cf.logging</groupId>

0 commit comments

Comments
 (0)