Skip to content

Commit 4024fbf

Browse files
committed
Build fix
1 parent 6f60747 commit 4024fbf

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pom.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@
407407
<groupId>org.apache.maven.plugins</groupId>
408408
<artifactId>maven-surefire-plugin</artifactId>
409409
<configuration>
410-
<!-- Suppresses the warning when Narcissus is loaded -->
411-
<argLine>--enable-native-access=ALL-UNNAMED</argLine>
410+
<!-- Suppress warning when Narcissus is loaded for testing -->
411+
<argLine>${surefireArgLine}</argLine>
412412
</configuration>
413413
</plugin>
414414

@@ -513,15 +513,24 @@
513513
<!-- Compile Javadoc to HTML5 if building with JDK 9+ -->
514514
<profile>
515515
<id>jdk9plus</id>
516+
<activation>
517+
<jdk>[9,)</jdk>
518+
</activation>
516519
<properties>
517520
<javadoc.html.version>-html5</javadoc.html.version>
518521
<!-- coverall version 4.3.0 does not work with java 9. -->
519522
<!-- See: https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
520523
<coveralls.skip>true</coveralls.skip>
521524
</properties>
525+
</profile>
526+
<profile>
527+
<id>jdk17plus</id>
522528
<activation>
523-
<jdk>[9,)</jdk>
529+
<jdk>[17,)</jdk>
524530
</activation>
531+
<properties>
532+
<surefireArgLine>--enable-native-access=ALL-UNNAMED</surefireArgLine>
533+
</properties>
525534
</profile>
526535

527536
<!-- Sign jars for release (./mvnw clean release:prepare release:perform) -->

0 commit comments

Comments
 (0)