Skip to content

Commit 8a3559a

Browse files
committed
Open java.net to unnamed modules
This is needed to inject the unsupported HTTP verb. I don't know really if we will be able to find a better option than that...
1 parent ea3cbd4 commit 8a3559a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
<!-- For non-ci builds we'd like the build to still complete if jacoco metrics aren't met. -->
4646
<jacoco.haltOnFailure>false</jacoco.haltOnFailure>
4747
<jjwt.suite.version>0.11.2</jjwt.suite.version>
48+
49+
<surefire.argLine></surefire.argLine>
4850
</properties>
4951

5052
<build>
@@ -272,6 +274,7 @@
272274
<id>default-test</id>
273275
<configuration>
274276
<excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile>
277+
<argLine>${surefire.argLine}</argLine>
275278
</configuration>
276279
</execution>
277280
<execution>
@@ -284,6 +287,7 @@
284287
<rerunFailingTestsCount>2</rerunFailingTestsCount>
285288
<!-- There are some tests that take longer or are a little flaky. Run them here. -->
286289
<includesFile>src/test/resources/slow-or-flaky-tests.txt</includesFile>
290+
<argLine>${surefire.argLine}</argLine>
287291
</configuration>
288292
</execution>
289293
</executions>
@@ -561,6 +565,16 @@
561565
</pluginRepository>
562566
</pluginRepositories>
563567
<profiles>
568+
<profile>
569+
<id>jdk11+</id>
570+
<activation>
571+
<jdk>[11,)</jdk>
572+
</activation>
573+
<properties>
574+
<!-- this is required for GithubHttpUrlConnectionClient#setRequestMethod() to work with JDK 16+ -->
575+
<surefire.argLine>--add-opens java.base/java.net=ALL-UNNAMED</surefire.argLine>
576+
</properties>
577+
</profile>
564578
<profile>
565579
<id>ci-non-windows</id>
566580
<activation>

0 commit comments

Comments
 (0)