Skip to content

Commit

Permalink
GitHubReport.java
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 22, 2024
1 parent d522d41 commit 1f65768
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/main/java/org/apache/maven/plugins/github/GitHubReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
*/
package org.apache.maven.plugins.github;

import javax.inject.Inject;

import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;

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.AbstractChangesReport;
Expand Down Expand Up @@ -64,12 +65,6 @@ public class GitHubReport extends AbstractChangesReport {
githubColumns.put("Updated", IssuesReportHelper.COLUMN_UPDATED);
}

/**
* Component used to decrypt server information.
*/
@Component
private SettingsDecrypter settingsDecrypter;

/**
* Sets the column names that you want to show in the report. The columns will appear in the report in the same
* order as you specify them here. Multiple values can be separated by commas.
Expand Down Expand Up @@ -125,6 +120,20 @@ public class GitHubReport extends AbstractChangesReport {
@Parameter(defaultValue = "false")
private boolean onlyCurrentVersion;

/**
* Component used to decrypt server information.
*/
private SettingsDecrypter settingsDecrypter;

@Inject
public GitHubReport(SettingsDecrypter settingsDecrypter) {
this.settingsDecrypter = settingsDecrypter;
}

/* --------------------------------------------------------------------- */
/* Public methods */
/* --------------------------------------------------------------------- */

@Override
public String getOutputName() {
return "github-report";
Expand All @@ -140,10 +149,6 @@ public String getDescription(Locale locale) {
return getBundle(locale).getString("report.issues.description");
}

/* --------------------------------------------------------------------- */
/* Public methods */
/* --------------------------------------------------------------------- */

/**
* @see org.apache.maven.reporting.AbstractMavenReport#canGenerateReport()
*/
Expand Down

0 comments on commit 1f65768

Please sign in to comment.