Skip to content

Commit

Permalink
chore(test-utils/assert): manage assertj version by spring boot
Browse files Browse the repository at this point in the history
Related to CAM-14459
  • Loading branch information
tasso94 authored and mboskamp committed Mar 24, 2022
1 parent 6830e5a commit b291141
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 30 deletions.
11 changes: 3 additions & 8 deletions spring-boot-starter/starter-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
<artifactId>camunda-bpm-spring-boot-starter-test</artifactId>
<name>Camunda Platform - Spring Boot Starter - Test</name>

<properties>
<camunda-assert.artifact>camunda-bpm-assert-assertj3-11-1</camunda-assert.artifact>
<camunda-assert.version>4.0.0</camunda-assert.version>
</properties>

<dependencies>

<dependency>
Expand Down Expand Up @@ -45,9 +40,9 @@
</dependency>

<dependency>
<groupId>org.camunda.bpm.assert</groupId>
<artifactId>${camunda-assert.artifact}</artifactId>
<version>${camunda-assert.version}</version>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bpm-assert</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>

Expand Down
45 changes: 24 additions & 21 deletions test-utils/assert/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,24 @@
<relativePath>../../database</relativePath>
<version>7.17.0-SNAPSHOT</version>
</parent>

<properties>
<version.slf4j>1.7.26</version.slf4j>
</properties>

<dependencyManagement>
<dependencies>
<!-- spring-boot-dependencies as first element in the list
ensures to be chosen over internal-dependencies for assertj -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${version.spring-boot}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-core-internal-dependencies</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.slf4j}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${version.slf4j}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
Expand All @@ -46,44 +39,54 @@
<artifactId>camunda-engine</artifactId>
<scope>provided</scope>
</dependency>

<!-- managed by spring-boot-dependencies -->
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.slf4j}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${version.slf4j}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${version.h2}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.uuid</groupId>
<artifactId>java-uuid-generator</artifactId>
<version>${version.uuid-generator}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 5 additions & 1 deletion test-utils/junit5-extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<relativePath>../../database</relativePath>
<version>7.17.0-SNAPSHOT</version>
</parent>

<properties>
<version.junit5>5.8.2</version.junit5>
</properties>

<dependencyManagement>
<dependencies>
Expand All @@ -33,7 +37,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<version>${version.junit5}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit b291141

Please sign in to comment.