Skip to content

Commit 14ca2f3

Browse files
authored
MINOR: Use mockito bom and upgrade to Mockito 5.16.0 (#672)
Use Mockito BoM for dependencies instead of individual versions.
1 parent 6ca25f7 commit 14ca2f3

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

flight/flight-sql-jdbc-core/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ under the License.
9797
<dependency>
9898
<groupId>org.mockito</groupId>
9999
<artifactId>mockito-core</artifactId>
100-
<version>${mockito.core.version}</version>
100+
<scope>test</scope>
101+
</dependency>
102+
<dependency>
103+
<groupId>org.mockito</groupId>
104+
<artifactId>mockito-junit-jupiter</artifactId>
101105
<scope>test</scope>
102106
</dependency>
103107

pom.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ under the License.
103103
<dep.hadoop.version>3.4.1</dep.hadoop.version>
104104
<dep.fbs.version>25.2.10</dep.fbs.version>
105105
<dep.avro.version>1.12.0</dep.avro.version>
106+
<dep.mockito-bom.version>5.16.0</dep.mockito-bom.version>
106107
<arrow.vector.classifier></arrow.vector.classifier>
107108
<forkCount>2</forkCount>
108109
<checkstyle.version>10.21.3</checkstyle.version>
109110
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
110111
<error_prone_core.version>2.31.0</error_prone_core.version>
111-
<mockito.core.version>5.15.2</mockito.core.version>
112112
<checker.framework.version>3.49.1</checker.framework.version>
113113
<logback.version>1.5.17</logback.version>
114114
<doclint>none</doclint>
@@ -221,6 +221,13 @@ under the License.
221221
<type>pom</type>
222222
<scope>import</scope>
223223
</dependency>
224+
<dependency>
225+
<groupId>org.mockito</groupId>
226+
<artifactId>mockito-bom</artifactId>
227+
<version>${dep.mockito-bom.version}</version>
228+
<type>pom</type>
229+
<scope>import</scope>
230+
</dependency>
224231
<dependency>
225232
<groupId>ch.qos.logback</groupId>
226233
<artifactId>logback-classic</artifactId>
@@ -275,12 +282,6 @@ under the License.
275282
<version>${dep.junit.jupiter.version}</version>
276283
<scope>test</scope>
277284
</dependency>
278-
<dependency>
279-
<groupId>org.mockito</groupId>
280-
<artifactId>mockito-junit-jupiter</artifactId>
281-
<version>5.15.2</version>
282-
<scope>test</scope>
283-
</dependency>
284285
<dependency>
285286
<groupId>ch.qos.logback</groupId>
286287
<artifactId>logback-classic</artifactId>

0 commit comments

Comments
 (0)