Skip to content

Commit 4ee425c

Browse files
committed
Raise the minimum Java version to 21. (#765)
See also Mockito documentation: [Explicitly setting up instrumentation for inline mocking (Java 21+)](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3) -------- * JDK 21: WARNING: A Java agent has been loaded dynamically (.../byte-buddy-agent-1.12.19.jar) WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information WARNING: Dynamic loading of agents will be disallowed by default in a future release
1 parent 682da89 commit 4ee425c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ subprojects {
3737
'everit': '1.14.6',
3838
'guava': '32.0.1-jre',
3939
'jackson': '2.21.4',
40-
'jdk': '11',
40+
'jdk': '21',
4141
'jdom': '2.0.6.1',
4242
'jena': '4.10.0',
4343
'jndi': '0.11.4.1',
@@ -195,6 +195,9 @@ subprojects {
195195
showStandardStreams = true
196196
exceptionFormat = 'full'
197197
}
198+
199+
// Required for ByteBuddy agent, used by EqualsVerifier and Mockito
200+
jvmArgs += ['-XX:+EnableDynamicAgentLoading']
198201
}
199202

200203
repositories {

0 commit comments

Comments
 (0)