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 10:07:31 UTC

[maven-plugin-tools] branch feature/deprecate-mojo-extractors created (now eb553bd5)

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

kwin pushed a change to branch feature/deprecate-mojo-extractors
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


      at eb553bd5 [MPLUGIN-440] Clarify deprecation of all extractors but the maven-plugin-tools-annotations

This branch includes the following new commits:

     new eb553bd5 [MPLUGIN-440] Clarify deprecation of all extractors but the maven-plugin-tools-annotations

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-plugin-tools] 01/01: [MPLUGIN-440] Clarify deprecation of all extractors but the maven-plugin-tools-annotations

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit eb553bd5ceb0456b20cb82c0cf705e3d21d4042f
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Nov 9 11:07:23 2022 +0100

    [MPLUGIN-440] Clarify deprecation of all extractors but the
    maven-plugin-tools-annotations
---
 .../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>