Skip to content

Commit c18fece

Browse files
committed
fix for jacoco compatability with jdk 24
1 parent 71d6399 commit c18fece

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

gapic-generator-java-pom-parent/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
</goals>
168168
<configuration>
169169
<propertyName>surefire.jacoco.args</propertyName>
170+
<argLine>@{surefire.jacoco.args} --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/sun.security.util=ALL-UNNAMED --add-opens java.base/sun.net.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED</argLine>
170171
</configuration>
171172
</execution>
172173
<execution>

gapic-generator-java/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@
336336
<goals>
337337
<goal>prepare-agent</goal>
338338
</goals>
339+
<configuration>
340+
<propertyName>surefire.jacoco.args</propertyName>
341+
<argLine>@{surefire.jacoco.args} --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/sun.security.util=ALL-UNNAMED --add-opens java.base/sun.net.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED</argLine>
342+
</configuration>
339343
</execution>
340344
<execution>
341345
<id>report</id>

0 commit comments

Comments
 (0)