Set --enable-preview for maven compile and test

This commit is contained in:
Andreas Stadelmeier 2023-03-15 18:49:29 +01:00
parent a8012a3ea6
commit 761e693984

10
pom.xml
View File

@ -57,6 +57,16 @@ http://maven.apache.org/maven-v4_0_0.xsd">
<compilerArgs> <compilerArgs>
--enable-preview --enable-preview
</compilerArgs> </compilerArgs>
<source>19</source>
<target>19</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<argLine>--enable-preview</argLine>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>