Skip to content

Commit f8e811f

Browse files
authored
use mockito 5.20.0 (#387)
* use mockito 5.20.0 4.11 was complaining about Java >20 Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) * Build with Java 21 limited to 8 compatibility
1 parent ad9d6bc commit f8e811f

File tree

6 files changed

+27
-4
lines changed

6 files changed

+27
-4
lines changed

.github/workflows/build-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: Set up Java
1717
uses: actions/setup-java@v4
1818
with:
19-
java-version: '8'
20-
distribution: 'zulu'
19+
java-version: '21'
20+
distribution: 'temurin'
2121

2222
- name: Cache Maven packages
2323
uses: actions/cache@v3

.github/workflows/build-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- name: Set up Java
1515
uses: actions/setup-java@v4
1616
with:
17-
java-version: '8'
18-
distribution: 'zulu'
17+
java-version: '21'
18+
distribution: 'temurin'
1919

2020
# Needed if the cache is out of whack and needs to be totally refreshed
2121
# - name: Clear Maven cache

Legacy/util/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@
120120
<dependency>
121121
<groupId>org.mockito</groupId>
122122
<artifactId>mockito-core</artifactId>
123+
<!-- TODO remove this version override once scijava catches up -->
124+
<version>5.20.0</version>
123125
<scope>test</scope>
124126
</dependency>
125127
</dependencies>

Modern/utilities/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@
172172
<dependency>
173173
<groupId>org.mockito</groupId>
174174
<artifactId>mockito-core</artifactId>
175+
<!-- TODO remove this version override once scijava catches up -->
176+
<version>5.20.0</version>
175177
<scope>test</scope>
176178
</dependency>
177179
</dependencies>

Modern/wrapperPlugins/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@
240240
<dependency>
241241
<groupId>org.mockito</groupId>
242242
<artifactId>mockito-core</artifactId>
243+
<!-- TODO remove this version override once scijava catches up -->
244+
<version>5.20.0</version>
243245
<scope>test</scope>
244246
<exclusions>
245247
<exclusion>

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,24 @@
119119
<license.copyrightOwners>Michael Doube, BoneJ developers</license.copyrightOwners>
120120
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
121121
<tagNameFormat>bonej-@{project.version}</tagNameFormat>
122+
<maven.compiler.release>8</maven.compiler.release>
122123
</properties>
124+
125+
<build>
126+
<pluginManagement>
127+
<plugins>
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-compiler-plugin</artifactId>
131+
<version>3.14.0</version>
132+
<configuration>
133+
<release>${maven.compiler.release}</release>
134+
</configuration>
135+
</plugin>
136+
137+
</plugins>
138+
</pluginManagement>
139+
</build>
123140

124141
<repositories>
125142
<repository>

0 commit comments

Comments
 (0)