Skip to content

Commit

Permalink
Move hamcrest dependency to the parent, upgrade it to 2.2 (OpenFeign#…
Browse files Browse the repository at this point in the history
…1476)

* Move hamcrest dependency to the parent, upgrade it to 2.2

* hamcrest-library is deprecated

* organise properties in parent: move the hamcrest version next to other test tools
  • Loading branch information
vitalijr2 committed Aug 4, 2021
1 parent c88b65a commit ebd8eee
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 39 deletions.
4 changes: 1 addition & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

<properties>
<main.basedir>${project.basedir}/..</main.basedir>
<hamcrest.version>1.3</hamcrest.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -67,8 +66,7 @@

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
3 changes: 1 addition & 2 deletions dropwizard-metrics4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>java-hamcrest</artifactId>
<version>2.0.0.0</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
3 changes: 1 addition & 2 deletions dropwizard-metrics5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>java-hamcrest</artifactId>
<version>2.0.0.0</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
3 changes: 1 addition & 2 deletions jaxrs2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>java-hamcrest</artifactId>
<version>2.0.0.0</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
10 changes: 1 addition & 9 deletions json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

<properties>
<main.basedir>${project.basedir}/..</main.basedir>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>1.10.19</mockito.version>
</properties>

Expand All @@ -44,14 +43,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrest.version}</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
3 changes: 1 addition & 2 deletions micrometer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>java-hamcrest</artifactId>
<version>2.0.0.0</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
11 changes: 1 addition & 10 deletions mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

<properties>
<main.basedir>${project.basedir}/..</main.basedir>

<hamcrest.version>1.3</hamcrest.version>
</properties>

<dependencies>
Expand All @@ -46,14 +44,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrest.version}</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<junit.version>4.13.1</junit.version>
<jackson.version>2.12.4</jackson.version>
<assertj.version>3.10.0</assertj.version>
<hamcrest.version>2.2</hamcrest.version>

<animal-sniffer-maven-plugin.version>1.17</animal-sniffer-maven-plugin.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
Expand Down Expand Up @@ -285,6 +286,12 @@
<version>${junit.version}</version>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>${hamcrest.version}</version>
</dependency>

<dependency>
<groupId>org.jvnet</groupId>
<artifactId>animal-sniffer-annotation</artifactId>
Expand Down
10 changes: 1 addition & 9 deletions spring4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<main.basedir>${project.basedir}/..</main.basedir>

<spring.version>4.3.6.RELEASE</spring.version>
<hamcrest.version>1.3</hamcrest.version>
</properties>

<dependencies>
Expand All @@ -58,14 +57,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrest.version}</version>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit ebd8eee

Please sign in to comment.