Open giugallo opened 4 years ago
I can't found too, I had to upgrade to jdk 14 in order to use switch expressions.
just ran into this problem too and think since there is not much support here I want to let you know my bloody workaround
specify a compiler option that does not hurt and doesn't expect a value and specify --enable-preview
as value
<compilerOptions>
<source>${java.version}</source>
<deprecation>--enable-preview</deprecation>
</compilerOptions>
I didn't find a way to specify compiler option
--enable-preview
like inmaven-compiler-plugin
. In themaven-compiler-plugin
can be specified in this wayI'm tring to use the new TextBlocks feature of java 13/14, but now the
apt-maven-plugin
is not anymore able to generate QClasses. The error is text blocks are a preview feature and are disabled by default. (use --enable-preview to enable text blocks)