Skip to content

Commit

Permalink
ChangesReport.java
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 22, 2024
1 parent 1f65768 commit c51f916
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package org.apache.maven.plugins.changes;

import javax.inject.Inject;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
Expand All @@ -35,7 +37,6 @@

import org.apache.commons.collections.map.CaseInsensitiveMap;
import org.apache.commons.io.input.XmlStreamReader;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.changes.model.Release;
Expand Down Expand Up @@ -143,12 +144,6 @@ public class ChangesReport extends AbstractChangesReport {
@Parameter
private Map<String, String> issueLinkTemplatePerSystem;

/**
* @since 2.2
*/
@Component
private MavenFileFilter mavenFileFilter;

/**
* Format to use for publishDate. The value will be available with the following expression ${publishDate}
*
Expand Down Expand Up @@ -212,6 +207,13 @@ public class ChangesReport extends AbstractChangesReport {

private CaseInsensitiveMap caseInsensitiveIssueLinkTemplatePerSystem;

private MavenFileFilter mavenFileFilter;

@Inject
public ChangesReport(MavenFileFilter mavenFileFilter) {
this.mavenFileFilter = mavenFileFilter;
}

/* --------------------------------------------------------------------- */
/* Public methods */
/* --------------------------------------------------------------------- */
Expand Down

0 comments on commit c51f916

Please sign in to comment.