Skip to content

Commit b8658ba

Browse files
committed
remove unwanted dependencies
1 parent a5e6a9e commit b8658ba

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
<groupId>org.springframework.boot</groupId>
9090
<artifactId>spring-boot-starter-test</artifactId>
9191
<scope>test</scope>
92+
<exclusions>
93+
<exclusion>
94+
<groupId>org.hamcrest</groupId>
95+
<artifactId>hamcrest</artifactId>
96+
</exclusion>
97+
</exclusions>
9298
</dependency>
9399
<dependency>
94100
<groupId>org.springframework.boot</groupId>
@@ -123,6 +129,10 @@
123129
<groupId>org.hamcrest</groupId>
124130
<artifactId>hamcrest-library</artifactId>
125131
</exclusion>
132+
<exclusion>
133+
<groupId>junit</groupId>
134+
<artifactId>junit</artifactId>
135+
</exclusion>
126136
</exclusions>
127137
</dependency>
128138
<dependency>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.junit.rules;
2+
3+
/**
4+
* This is required by Testcontainers but actually unused.
5+
* By defining this here, we can avoid loading Junit-4.
6+
* See: https://github.com/testcontainers/testcontainers-java/issues/970
7+
*/
8+
@SuppressWarnings("unused")
9+
public interface TestRule {
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.junit.runners.model;
2+
3+
/**
4+
* This is required by Testcontainers but actually unused.
5+
* By defining this here, we can avoid loading Junit-4.
6+
* See: https://github.com/testcontainers/testcontainers-java/issues/970
7+
*/
8+
@SuppressWarnings("unused")
9+
public class Statement {
10+
}

0 commit comments

Comments
 (0)