This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/deprecate-compilerVersion
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git

commit 109d27ff57700a0a4fe9b473b31e2d77e6bacef5
Author: Konrad Windszus <k...@apache.org>
AuthorDate: Sat Feb 24 16:08:10 2024 +0100

    [MCOMPILER-576] Deprecate parameter "compilerVersion"
    
    This is no longer evaluated in plexus-compiler-javac
    (https://github.com/codehaus-plexus/plexus-compiler/issues/356).
    It was never used by any other plexus compilers in the past.
---
 .../java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java 
b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index 83fa779..0c49775 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -236,7 +236,10 @@ public abstract class AbstractCompilerMojo extends 
AbstractMojo {
 
     /**
      * Version of the compiler to use, ex. "1.3", "1.5", if {@link #fork} is 
set to <code>true</code>.
+     * @deprecated This parameter is no longer evaluated by the underlying 
compilers, instead the actual
+     * version of the {@code javac} binary is automatically retrieved.
      */
+    @Deprecated
     @Parameter(property = "maven.compiler.compilerVersion")
     private String compilerVersion;
 

Reply via email to