You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2024/07/12 21:08:57 UTC

(maven-javadoc-plugin) branch MJAVADOC-801 updated (5d785a14 -> db9700e5)

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

michaelo pushed a change to branch MJAVADOC-801
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git


 discard 5d785a14 [MJAVADOC-801] Upgrade to Clirr Maven Plugin 2.8 in fix goals
     new db9700e5 [MJAVADOC-801] Upgrade to Clirr Maven Plugin 2.8 in fix goals

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (5d785a14)
            \
             N -- N -- N   refs/heads/MJAVADOC-801 (db9700e5)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 .../maven/plugins/javadoc/AbstractFixJavadocMojo.java       |  1 +
 .../expected/src/main/java/fix/test/ClassWithJavadoc.java   | 13 +++++++++++++
 .../expected/src/main/java/fix/test/ClassWithNoJavadoc.java | 11 +++++++++++
 3 files changed, 25 insertions(+)


(maven-javadoc-plugin) 01/01: [MJAVADOC-801] Upgrade to Clirr Maven Plugin 2.8 in fix goals

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

michaelo pushed a commit to branch MJAVADOC-801
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git

commit db9700e5c8b871a3c441ae1b472bc30b334dc02f
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Jul 12 22:00:46 2024 +0200

    [MJAVADOC-801] Upgrade to Clirr Maven Plugin 2.8 in fix goals
    
    This closes #296
---
 .../maven/plugins/javadoc/AbstractFixJavadocMojo.java    | 16 ++++++----------
 src/site/apt/examples/fix-javadocs.apt.vm                | 10 +++++-----
 2 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java
index c560e1f2..51e859bf 100644
--- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java
+++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java
@@ -79,7 +79,6 @@ import org.apache.maven.project.MavenProject;
 import org.apache.maven.settings.Settings;
 import org.apache.maven.shared.invoker.MavenInvocationException;
 import org.codehaus.plexus.components.interactivity.InputHandler;
-import org.codehaus.plexus.languages.java.version.JavaVersion;
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.ReaderFactory;
 import org.codehaus.plexus.util.StringUtils;
@@ -193,9 +192,9 @@ public abstract class AbstractFixJavadocMojo extends AbstractMojo {
     private static final String CLIRR_MAVEN_PLUGIN_ARTIFACTID = "clirr-maven-plugin";
 
     /**
-     * The latest Clirr Maven plugin version <code>2.2.2</code> *
+     * The latest Clirr Maven plugin version <code>2.8</code> *
      */
-    private static final String CLIRR_MAVEN_PLUGIN_VERSION = "2.2.2";
+    private static final String CLIRR_MAVEN_PLUGIN_VERSION = "2.8";
 
     /**
      * The Clirr Maven plugin goal <code>check</code> *
@@ -228,7 +227,7 @@ public abstract class AbstractFixJavadocMojo extends AbstractMojo {
 
     /**
      * Version to compare the current code against using the
-     * <a href="http://mojo.codehaus.org/clirr-maven-plugin/">Clirr Maven Plugin</a>.
+     * <a href="https://www.mojohaus.org/clirr-maven-plugin/">Clirr Maven Plugin</a>.
      * <br/>
      * See <a href="#defaultSince">defaultSince</a>.
      */
@@ -632,17 +631,14 @@ public abstract class AbstractFixJavadocMojo extends AbstractMojo {
 
         String clirrGoal = getFullClirrGoal();
 
-        // http://mojo.codehaus.org/clirr-maven-plugin/check-mojo.html
+        // https://www.mojohaus.org/clirr-maven-plugin/check-mojo.html
         File clirrTextOutputFile = FileUtils.createTempFile(
                 "clirr", ".txt", new File(project.getBuild().getDirectory()));
         Properties properties = new Properties();
         properties.put("textOutputFile", clirrTextOutputFile.getAbsolutePath());
         properties.put("comparisonVersion", comparisonVersion);
         properties.put("failOnError", "false");
-        if (JavaVersion.JAVA_SPECIFICATION_VERSION.isBefore("8")) {
-            // ensure that Java7 picks up TLSv1.2 when connecting with Central
-            properties.put("https.protocols", "TLSv1.2");
-        }
+        properties.put("minSeverity", "info");
 
         File invokerDir = new File(project.getBuild().getDirectory(), "invoker");
         invokerDir.mkdirs();
@@ -724,7 +720,7 @@ public abstract class AbstractFixJavadocMojo extends AbstractMojo {
                     continue;
                 }
 
-                // http://clirr.sourceforge.net/clirr-core/exegesis.html
+                // https://clirr.sourceforge.net/clirr-core/exegesis.html
                 // 7011 - Method Added
                 // 7012 - Method Added to Interface
                 // 8000 - Class Added
diff --git a/src/site/apt/examples/fix-javadocs.apt.vm b/src/site/apt/examples/fix-javadocs.apt.vm
index be45ef07..d049204b 100644
--- a/src/site/apt/examples/fix-javadocs.apt.vm
+++ b/src/site/apt/examples/fix-javadocs.apt.vm
@@ -49,8 +49,8 @@ Fixing Javadoc Comments
  selective tags like author, version, etc.
  You specify default value for some tags, for example, {{{../fix-mojo.html#defaultAuthor}\<defaultAuthor/\>}}.
 
- The <javadoc:fix> goal can use Clirr ({{{http://clirr.sourceforge.net}}} via the
- {{{http://mojo.codehaus.org/clirr-maven-plugin/}clirr-maven-plugin}} to add
+ The <javadoc:fix> goal can use Clirr ({{{https://clirr.sourceforge.net}}} via the
+ {{{https://www.mojohaus.org/clirr-maven-plugin/}clirr-maven-plugin}} to add
  <@since> tags will be dynamically added for the current
  project version. You need to add the <comparisonVersion> parameter (see below).
 
@@ -105,8 +105,8 @@ mvn javadoc:fix -DcomparisonVersion=1.0
 
 ** Using another Clirr version
 
-  By default, the <fix> and <test-fix> goals use the {{{https://www.mojohaus.org/clirr-maven-plugin}clirr-maven-plugin}},
-  version <<<2.2.2>>>. To use another version, you need to add a dependency in the Javadoc plugin as shown here:
+  By default, the <fix> and <test-fix> goals use the {{{https://www.mojohaus.org/clirr-maven-plugin/}clirr-maven-plugin}},
+  version <<<2.8>>>. To use another version, you need to add a dependency in the Javadoc plugin as shown here:
 
 +-----+
 <project>
@@ -124,7 +124,7 @@ mvn javadoc:fix -DcomparisonVersion=1.0
           <dependency>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>clirr-maven-plugin</artifactId>
-            <version>2.3-SNAPSHOT</version>
+            <version>2.9-SNAPSHOT</version>
           </dependency>
         </dependencies>
       </plugin>