@@ -99,15 +99,6 @@ public abstract class ScalaMojoSupport extends AbstractMojo {
99
99
@ Parameter (property = "addScalacArgs" )
100
100
private String addScalacArgs ;
101
101
102
- /** The -target argument for the Scala compiler. */
103
- @ Parameter (property = "scala.compiler.target" )
104
- protected String scalacTarget ;
105
-
106
- /** The -release argument for the Scala compiler, supported since scala 2.13. */
107
- @ Parameter (property = "scala.compiler.release" )
108
- protected String scalacRelease ;
109
-
110
-
111
102
/** override the className (FQN) of the scala tool */
112
103
@ Parameter (required = false , property = "maven.scala.className" )
113
104
protected String scalaClassName ;
@@ -163,7 +154,10 @@ public abstract class ScalaMojoSupport extends AbstractMojo {
163
154
@ Parameter (property = "maven.compiler.target" )
164
155
protected String target ;
165
156
166
- /** The --release argument for the Java compiler (when using incremental compiler), supported since Java9. */
157
+ /**
158
+ * The --release argument for the Java compiler (when using incremental compiler), supported since
159
+ * Java9.
160
+ */
167
161
@ Parameter (property = "maven.compiler.release" )
168
162
protected String release ;
169
163
@@ -591,12 +585,12 @@ protected List<String> getScalaOptions() throws Exception {
591
585
}
592
586
options .addAll (getCompilerPluginOptions ());
593
587
594
- if (scalacTarget != null && !scalacTarget .isEmpty ()) {
595
- options .add ("-target:" + scalacTarget );
588
+ if (target != null && !target .isEmpty ()) {
589
+ options .add ("-target:" + target );
596
590
}
597
- if (scalacRelease != null && !scalacRelease .isEmpty ()) {
591
+ if (release != null && !release .isEmpty ()) {
598
592
options .add ("-release" );
599
- options .add (scalacRelease );
593
+ options .add (release );
600
594
}
601
595
602
596
return options ;
0 commit comments