File tree 2 files changed +11
-1
lines changed
src/main/java/org/apache/maven/plugin/compiler 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ under the License.
68
68
! The following property is used in the integration tests MCOMPILER-157
69
69
-->
70
70
<mavenPluginPluginVersion >3.5</mavenPluginPluginVersion >
71
- <plexusCompilerVersion >2.11.0 </plexusCompilerVersion >
71
+ <plexusCompilerVersion >2.11.1 </plexusCompilerVersion >
72
72
73
73
<groovyVersion >2.4.21</groovyVersion >
74
74
<groovyEclipseCompilerVersion >3.7.0</groovyEclipseCompilerVersion >
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ public abstract class AbstractCompilerMojo
140
140
@ Parameter ( property = "maven.compiler.parameters" , defaultValue = "false" )
141
141
private boolean parameters ;
142
142
143
+
144
+ /**
145
+ * Set to <code>true</code> to Enable preview language features of the java compiler
146
+ * @since 3.10.1
147
+ */
148
+ @ Parameter ( property = "maven.compiler.enablePreview" , defaultValue = "false" )
149
+ private boolean enablePreview ;
150
+
143
151
/**
144
152
* Set to <code>true</code> to show messages about what the compiler is doing.
145
153
*/
@@ -695,6 +703,8 @@ public void execute()
695
703
696
704
compilerConfiguration .setParameters ( parameters );
697
705
706
+ compilerConfiguration .setEnablePreview ( enablePreview );
707
+
698
708
compilerConfiguration .setVerbose ( verbose );
699
709
700
710
compilerConfiguration .setShowWarnings ( showWarnings );
You can’t perform that action at this time.
0 commit comments