Skip to content

Commit

Permalink
remove unwanted dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCotare committed Sep 11, 2024
1 parent a5e6a9e commit b8658ba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -123,6 +129,10 @@
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
10 changes: 10 additions & 0 deletions src/test/java/org/junit/rules/TestRule.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.junit.rules;

/**
* This is required by Testcontainers but actually unused.
* By defining this here, we can avoid loading Junit-4.
* See: https://github.com/testcontainers/testcontainers-java/issues/970
*/
@SuppressWarnings("unused")
public interface TestRule {
}
10 changes: 10 additions & 0 deletions src/test/java/org/junit/runners/model/Statement.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.junit.runners.model;

/**
* This is required by Testcontainers but actually unused.
* By defining this here, we can avoid loading Junit-4.
* See: https://github.com/testcontainers/testcontainers-java/issues/970
*/
@SuppressWarnings("unused")
public class Statement {
}

0 comments on commit b8658ba

Please sign in to comment.