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

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


The following commit(s) were added to refs/heads/master by this push:
     new 40e50df  [MCHANGES-433] Remove deprecated parameter - 
issueLinkTemplate from changes-report (#46)
40e50df is described below

commit 40e50df2436f3b760d84475ca2520c4d2e0fadf0
Author: Elliotte Rusty Harold <elh...@users.noreply.github.com>
AuthorDate: Fri Nov 22 15:17:56 2024 +0000

    [MCHANGES-433] Remove deprecated parameter - issueLinkTemplate from 
changes-report (#46)
---
 .../apache/maven/plugins/changes/ChangesReport.java | 21 ---------------------
 1 file changed, 21 deletions(-)

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 b43c229..4b71362 100644
--- a/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java
+++ b/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java
@@ -88,22 +88,6 @@ public class ChangesReport extends AbstractChangesReport {
     @Parameter(defaultValue = "false")
     private boolean filteringChanges;
 
-    /**
-     * Template string that is used to discover the URL to use to display an 
issue report. There are 2 template tokens
-     * you can use. <code>%URL%</code>: this is computed by getting the 
<code>&lt;issueManagement&gt;/&lt;url&gt;</code>
-     * value from the POM, and removing the last '/' and everything that comes 
after it. <code>%ISSUE%</code>: this is
-     * the issue number.
-     * <p>
-     * <strong>Note:</strong> In versions of this plugin prior to 2.0-beta-2 
this parameter was called
-     * <code>link_template</code>.
-     * </p>
-     *
-     * @since 2.0-beta-2
-     * @deprecated As of 2.1 use issueLinkTemplatePerSystem: this one will be 
with system default
-     */
-    @Parameter(property = "changes.issueLinkTemplate")
-    private String issueLinkTemplate;
-
     /**
      * Template strings per system that is used to discover the URL to use to 
display an issue report. Each key in this
      * map denotes the (case-insensitive) identifier of the issue tracking 
system and its value gives the URL template.
@@ -211,11 +195,6 @@ public class ChangesReport extends AbstractChangesReport {
 
     @Override
     public void executeReport(Locale locale) throws MavenReportException {
-        failIfUsingDeprecatedParameter(
-                issueLinkTemplate,
-                "issueLinkTemplate",
-                "You must use 'issueLinkTemplatePerSystem' for the system '"
-                        + ChangesReportGenerator.DEFAULT_ISSUE_SYSTEM_KEY + "' 
instead.");
         Date now = new Date();
         SimpleDateFormat simpleDateFormat = new 
SimpleDateFormat(publishDateFormat, new Locale(publishDateLocale));
         Properties additionalProperties = new Properties();

Reply via email to