Use enable-preview via compiler argument option in the maven-compiler-plugin because IntelliJ does not recognize the configuration option
This commit is contained in:
parent
5d8d91e0e8
commit
fd92f5e807
7
pom.xml
7
pom.xml
@ -101,9 +101,14 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.12.1</version>
|
<version>3.12.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<enablePreview>true</enablePreview>
|
|
||||||
<parameters>true</parameters>
|
<parameters>true</parameters>
|
||||||
<compilerArgs>
|
<compilerArgs>
|
||||||
|
<!--
|
||||||
|
IntelliJ does not yet support the enablePreview configuration option.
|
||||||
|
Therefore, we use a compiler argument.
|
||||||
|
See https://youtrack.jetbrains.com/issue/IDEA-296303
|
||||||
|
-->
|
||||||
|
<compilerArg>--enable-preview</compilerArg>
|
||||||
<compilerArg>--add-modules</compilerArg>
|
<compilerArg>--add-modules</compilerArg>
|
||||||
<compilerArg>java.base,jdk.incubator.vector</compilerArg>
|
<compilerArg>java.base,jdk.incubator.vector</compilerArg>
|
||||||
</compilerArgs>
|
</compilerArgs>
|
||||||
|
Loading…
Reference in New Issue
Block a user