diff options
| author | Filip Hrisafov <filip.hrisafov@gmail.com> | 2024-01-03 20:14:45 +0100 |
|---|---|---|
| committer | Gunnar Morling <gunnar.morling@googlemail.com> | 2024-01-04 15:35:34 +0100 |
| commit | fd92f5e807a3ffdd71b5d150b7b420677546c32c (patch) | |
| tree | 2ceaf1fa3dac657319092c36cbfcd66f7b57bbe8 | |
| parent | 5d8d91e0e8a0fad055432c112fb766fd311bc257 (diff) | |
Use enable-preview via compiler argument option in the maven-compiler-plugin because IntelliJ does not recognize the configuration option
| -rw-r--r-- | pom.xml | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -101,9 +101,14 @@ <artifactId>maven-compiler-plugin</artifactId> <version>3.12.1</version> <configuration> - <enablePreview>true</enablePreview> <parameters>true</parameters> <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>java.base,jdk.incubator.vector</compilerArg> </compilerArgs> |
