Enable java 21 preview features

This commit is contained in:
Dave Fisher
2024-07-26 09:38:18 -07:00
parent 6115749098
commit 7757bf2d73

View File

@@ -546,6 +546,7 @@
<source>21</source> <source>21</source>
<release>21</release> <release>21</release>
<compilerArgs> <compilerArgs>
<arg>--enable-preview</arg>
<!-- <compilerArg>-Xdoclint:all</compilerArg>--> <!-- <compilerArg>-Xdoclint:all</compilerArg>-->
<!-- <compilerArg>-Xlint:all</compilerArg>--> <!-- <compilerArg>-Xlint:all</compilerArg>-->
</compilerArgs> </compilerArgs>
@@ -556,7 +557,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>-ea @{argLine}</argLine> <!-- <argLine>-ea @{argLine}</argLine> -->
<argLine>--enable-preview @{argLine}</argLine>
<systemPropertyVariables> <systemPropertyVariables>
<Log4jContextSelector> <Log4jContextSelector>
org.apache.logging.log4j.core.async.AsyncLoggerContextSelector org.apache.logging.log4j.core.async.AsyncLoggerContextSelector