You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2022/11/09 12:33:53 UTC

[maven-plugin-tools] branch master updated: [MPLUGIN-440] Clarify deprecation of all extractors but the maven-plugin-tools-annotations (#172)

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 106c99dc [MPLUGIN-440] Clarify deprecation of all extractors but the maven-plugin-tools-annotations (#172)
106c99dc is described below

commit 106c99dcb0a2d9eee149855f924d614cc452ab7e
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Nov 9 13:33:47 2022 +0100

    [MPLUGIN-440] Clarify deprecation of all extractors but the maven-plugin-tools-annotations (#172)
---
 .../plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java     | 4 ++--
 maven-plugin-tools-java/src/site/apt/index.apt                        | 2 ++
 maven-script/maven-plugin-tools-ant/src/site/apt/index.apt            | 2 ++
 maven-script/maven-plugin-tools-beanshell/src/site/apt/index.apt      | 2 ++
 maven-script/pom.xml                                                  | 2 +-
 5 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java b/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java
index 3d8e6b60..9b9dd6f1 100644
--- a/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java
+++ b/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java
@@ -37,7 +37,7 @@ import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
 
 /**
- * @deprecated Scripting support for mojos is deprecated and is planned tp be removed in maven 4.0
+ * @deprecated Scripting support for Mojos is deprecated and is planned to be removed in Maven 4.0
  * @author jdcasey
  */
 @Deprecated
@@ -48,7 +48,7 @@ public abstract class AbstractScriptedMojoDescriptorExtractor
     @Override
     public boolean isDeprecated()
     {
-        return false;
+        return true;
     }
 
     /** {@inheritDoc} */
diff --git a/maven-plugin-tools-java/src/site/apt/index.apt b/maven-plugin-tools-java/src/site/apt/index.apt
index 4c4e063a..186e9bd3 100644
--- a/maven-plugin-tools-java/src/site/apt/index.apt
+++ b/maven-plugin-tools-java/src/site/apt/index.apt
@@ -29,6 +29,8 @@
 
 Maven Plugin Tool for Java Annotated with Mojo Javadoc Tags
 
+ <<This Mojo descriptor extractor is deprecated and should no longer be used. Rely on {{{../maven-plugin-tools-annotations/index.html}Maven Plugin Tool for Annotations}} instead.>>
+
  The Maven Plugin Tool for Java is the <<<java-javadoc>>> implementation of
  {{{../maven-plugin-tools-api/index.html}maven-plugin-tools-api}}
  to extract descriptors for plugins written in Java annotated with Mojo Javadoc Tags.
diff --git a/maven-script/maven-plugin-tools-ant/src/site/apt/index.apt b/maven-script/maven-plugin-tools-ant/src/site/apt/index.apt
index 2b25f685..7d488982 100644
--- a/maven-script/maven-plugin-tools-ant/src/site/apt/index.apt
+++ b/maven-script/maven-plugin-tools-ant/src/site/apt/index.apt
@@ -28,6 +28,8 @@
 
 Maven Plugin Tool for Ant
 
+ <<This Mojo descriptor extractor is deprecated and should no longer be used. With Maven 4 only Java based Mojos will be supported. Use Java and rely on {{{../maven-plugin-tools-annotations/index.html}Maven Plugin Tool for Annotations}} instead.>>
+
  The Maven Plugin Tool for Ant is the <<<ant>>> implementation of
  {{{../maven-plugin-tools-api/index.html}maven-plugin-tools-api}} to
  extract descriptors for plugins written in Ant.
diff --git a/maven-script/maven-plugin-tools-beanshell/src/site/apt/index.apt b/maven-script/maven-plugin-tools-beanshell/src/site/apt/index.apt
index ee629cae..a079dbe1 100644
--- a/maven-script/maven-plugin-tools-beanshell/src/site/apt/index.apt
+++ b/maven-script/maven-plugin-tools-beanshell/src/site/apt/index.apt
@@ -28,6 +28,8 @@
 
 Maven Plugin Tool for Beanshell
 
+ <<This Mojo descriptor extractor is deprecated and should no longer be used. With Maven 4 only Java based Mojos will be supported. Use Java and rely on {{{../maven-plugin-tools-annotations/index.html}Maven Plugin Tool for Annotations}} instead.>>
+
  The Maven Plugin Tool for Beanshell is the <<<bsh>>> implementation of
  {{{../maven-plugin-tools-api/index.html}maven-plugin-tools-api}}
  to extract descriptors for plugins written in Beanshell.
diff --git a/maven-script/pom.xml b/maven-script/pom.xml
index 8a73c36c..6f3e1281 100644
--- a/maven-script/pom.xml
+++ b/maven-script/pom.xml
@@ -30,7 +30,7 @@ under the License.
   <packaging>pom</packaging>
 
   <name>Maven Script Mojo Support</name>
-  <description>Maven Script Mojo Support lets developer write Maven plugins/goals with scripting languages instead of compiled Java.</description>
+  <description>Maven Script Mojo Support lets developer write Maven plugins/goals with scripting languages instead of compiled Java. Scripting support is deprecated, with Maven 4 only Java based Mojos will be supported.</description>
 
   <modules>
     <module>maven-plugin-tools-ant</module>