Skip to content

Commit

Permalink
Add junit-bom to dependency management (#392)
Browse files Browse the repository at this point in the history
* Add junit-platform-commons to dependency management

Adding the junit-platform-commons to the dependency
management ensures that this specified version will be
used. Without explicitly setting the version, third
party dependencies might bring junit-platform-commons
in an older version. This causes problem when this
older version is not compatible with junit-jupiter
used in this project.

* Introduce junit-bom
  • Loading branch information
hassler-d authored Oct 15, 2020
1 parent 83db9ee commit 1c807eb
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -265,24 +265,10 @@
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit-jupiter.version}</version>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
Expand Down

0 comments on commit 1c807eb

Please sign in to comment.