Skip to content

Commit 0ab92b2

Browse files
authored
Merge pull request #9 from aboutbits/remove-unwanted-asserts
remove unwanted dependencies
2 parents a5e6a9e + 4ee7692 commit 0ab92b2

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.3.3</version>
9+
<version>3.3.4</version>
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -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,12 @@
123129
<groupId>org.hamcrest</groupId>
124130
<artifactId>hamcrest-library</artifactId>
125131
</exclusion>
132+
<exclusion>
133+
<!-- see: https://github.com/testcontainers/testcontainers-java/issues/970#issuecomment-625044008 -->
134+
<!-- can be removed once testcontainers drop their dependency to junit4 -->
135+
<groupId>junit</groupId>
136+
<artifactId>junit</artifactId>
137+
</exclusion>
126138
</exclusions>
127139
</dependency>
128140
<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#issuecomment-625044008
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#issuecomment-625044008
7+
*/
8+
@SuppressWarnings("unused")
9+
public class Statement {
10+
}

0 commit comments

Comments
 (0)