Add mockito bom dependency for compatibility with Boot 3.1.x
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
<wiremock.version>2.26.3</wiremock.version>
|
||||
<spring-retry.version>1.3.1</spring-retry.version>
|
||||
<commons.collections4.version>4.4</commons.collections4.version>
|
||||
<mockito-inline.version>4.8.1</mockito-inline.version>
|
||||
</properties>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
@@ -233,6 +234,20 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!--Spring Boot 3.1 uses Mockito 5.x. Mockito 5.x has removed support for mockito-inline.-->
|
||||
<!--https://github.com/mockito/mockito/issues/2877-->
|
||||
<!--We need to support both Boot 3.0.x and Boot 3.1.x with Spring Cloud K8s 3.0.x-->
|
||||
<!--To maintain compatibility we manage the version ourselves-->
|
||||
<!-- TODO Remove this and all references to mockito-inline in the next major -->
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-bom</artifactId>
|
||||
<version>${mockito-inline.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<profiles>
|
||||
|
||||
Reference in New Issue
Block a user