You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/09 19:24:02 UTC

(maven-changes-plugin) branch agent/doxia-2-adoption created (now 77a908a)

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

slachiewicz pushed a change to branch agent/doxia-2-adoption
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git


      at 77a908a  Implement getOutputPath() and deprecate getOutputName()

This branch includes the following new commits:

     new 77a908a  Implement getOutputPath() and deprecate getOutputName()

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-changes-plugin) 01/01: Implement getOutputPath() and deprecate getOutputName()

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

slachiewicz pushed a commit to branch agent/doxia-2-adoption
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git

commit 77a908a0f69bea201758709d51a7c5c8342a6589
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Wed Sep 9 21:23:52 2026 +0200

    Implement getOutputPath() and deprecate getOutputName()
    
    Maven Reporting API 4.0.0 keeps getOutputName() abstract, so it cannot simply
    be renamed: it stays, deprecated, delegating to the new method. Do not collapse
    the pair until the API drops getOutputName().
---
 .../java/org/apache/maven/plugins/changes/ChangesReport.java  | 11 +++++++++++
 .../maven/plugins/changes/github/GitHubChangesReport.java     | 11 +++++++++++
 .../apache/maven/plugins/changes/jira/JiraChangesReport.java  | 11 +++++++++++
 .../apache/maven/plugins/changes/trac/TracChangesReport.java  | 11 +++++++++++
 4 files changed, 44 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java b/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java
index eff5a0b..5163947 100644
--- a/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java
+++ b/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java
@@ -312,9 +312,20 @@ public class ChangesReport extends AbstractChangesReport {
         return getBundle(locale).getString("report.issues.name");
     }
 
+    /**
+     * @deprecated use {@link #getOutputPath()} instead
+     */
     @Override
     @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "changes";
     }
 
diff --git a/src/main/java/org/apache/maven/plugins/changes/github/GitHubChangesReport.java b/src/main/java/org/apache/maven/plugins/changes/github/GitHubChangesReport.java
index 858f847..afd6dc1 100644
--- a/src/main/java/org/apache/maven/plugins/changes/github/GitHubChangesReport.java
+++ b/src/main/java/org/apache/maven/plugins/changes/github/GitHubChangesReport.java
@@ -126,9 +126,20 @@ public class GitHubChangesReport extends AbstractChangesReport {
     /* Public methods */
     /* --------------------------------------------------------------------- */
 
+    /**
+     * @deprecated use {@link #getOutputPath()} instead
+     */
     @Override
     @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "github-changes";
     }
 
diff --git a/src/main/java/org/apache/maven/plugins/changes/jira/JiraChangesReport.java b/src/main/java/org/apache/maven/plugins/changes/jira/JiraChangesReport.java
index c916fe8..0fcb91b 100644
--- a/src/main/java/org/apache/maven/plugins/changes/jira/JiraChangesReport.java
+++ b/src/main/java/org/apache/maven/plugins/changes/jira/JiraChangesReport.java
@@ -372,9 +372,20 @@ public class JiraChangesReport extends AbstractChangesReport {
         return getBundle(locale).getString("report.issues.name");
     }
 
+    /**
+     * @deprecated use {@link #getOutputPath()} instead
+     */
     @Override
     @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "jira-changes";
     }
 
diff --git a/src/main/java/org/apache/maven/plugins/changes/trac/TracChangesReport.java b/src/main/java/org/apache/maven/plugins/changes/trac/TracChangesReport.java
index 92f2b16..c7e9c5f 100644
--- a/src/main/java/org/apache/maven/plugins/changes/trac/TracChangesReport.java
+++ b/src/main/java/org/apache/maven/plugins/changes/trac/TracChangesReport.java
@@ -162,9 +162,20 @@ public class TracChangesReport extends AbstractChangesReport {
         return getBundle(locale).getString("report.issues.name");
     }
 
+    /**
+     * @deprecated use {@link #getOutputPath()} instead
+     */
     @Override
     @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "trac-changes";
     }