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/10 11:02:55 UTC

(maven-changelog-plugin) 01/01: Implement getOutputPath() and deprecate getOutputName()

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-changelog-plugin.git

commit 7fc2cfff2f40e55f849d20df17686cba8995989a
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Thu Sep 10 13:02:46 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().
---
 .../org/apache/maven/plugins/changelog/ChangeLogReport.java  | 12 +++++++++++-
 .../maven/plugins/changelog/DeveloperActivityReport.java     | 12 +++++++++++-
 .../apache/maven/plugins/changelog/FileActivityReport.java   | 12 +++++++++++-
 3 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/changelog/ChangeLogReport.java b/src/main/java/org/apache/maven/plugins/changelog/ChangeLogReport.java
index 2585b29..77ee64f 100644
--- a/src/main/java/org/apache/maven/plugins/changelog/ChangeLogReport.java
+++ b/src/main/java/org/apache/maven/plugins/changelog/ChangeLogReport.java
@@ -1596,9 +1596,19 @@ public class ChangeLogReport extends AbstractMavenReport {
     }
 
     /**
-     * {@inheritDoc}
+     * @deprecated use {@link #getOutputPath()} instead
      */
+    @Override
+    @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "changelog";
     }
 
diff --git a/src/main/java/org/apache/maven/plugins/changelog/DeveloperActivityReport.java b/src/main/java/org/apache/maven/plugins/changelog/DeveloperActivityReport.java
index d28a17f..42be4d6 100644
--- a/src/main/java/org/apache/maven/plugins/changelog/DeveloperActivityReport.java
+++ b/src/main/java/org/apache/maven/plugins/changelog/DeveloperActivityReport.java
@@ -59,9 +59,19 @@ public class DeveloperActivityReport extends ChangeLogReport {
     }
 
     /**
-     * {@inheritDoc}
+     * @deprecated use {@link #getOutputPath()} instead
      */
+    @Override
+    @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "dev-activity";
     }
 
diff --git a/src/main/java/org/apache/maven/plugins/changelog/FileActivityReport.java b/src/main/java/org/apache/maven/plugins/changelog/FileActivityReport.java
index 514eaa8..b654031 100644
--- a/src/main/java/org/apache/maven/plugins/changelog/FileActivityReport.java
+++ b/src/main/java/org/apache/maven/plugins/changelog/FileActivityReport.java
@@ -52,9 +52,19 @@ public class FileActivityReport extends ChangeLogReport {
     }
 
     /**
-     * {@inheritDoc}
+     * @deprecated use {@link #getOutputPath()} instead
      */
+    @Override
+    @Deprecated
     public String getOutputName() {
+        return getOutputPath();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String getOutputPath() {
         return "file-activity";
     }