Skip to content

Commit

Permalink
Clean up dependencies as reported by dependency:analyze (#54)
Browse files Browse the repository at this point in the history
* Clean up dependencies as reported by dependency:analyze

* Expect the environment to provide all Surefire dependencies

By depending on them at compile and runtime it will override the classpath of
the Maven Surefire Plugin causing class mismatches at runtime.

This fixes #52
  • Loading branch information
michael-o authored Jul 17, 2024
1 parent c64f745 commit c79ad7e
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,47 @@
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-api</artifactId>
<version>${maven.surefire.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-logger-api</artifactId>
<version>${maven.surefire.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-extensions-api</artifactId>
<version>${maven.surefire.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-shared-utils</artifactId>
<version>${maven.surefire.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>${maven.surefire.version}</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
<version>0.3.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
Expand Down

0 comments on commit c79ad7e

Please sign in to comment.