Skip to content

Commit

Permalink
Replace deprecated getLog() with slf4j logger (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
jensGiehl authored Dec 20, 2024
1 parent 4a2bd47 commit 237a382
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.util.DirectoryScanner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Goal which generates a Cucumber Report.
*/
@Mojo(name = "generate", defaultPhase = LifecyclePhase.VERIFY)
public class CucumberReportGeneratorMojo extends AbstractMojo {

private static final Logger LOGGER = LoggerFactory.getLogger(CucumberReportGeneratorMojo.class);

/**
* Name of the project.
*/
Expand Down Expand Up @@ -170,7 +174,7 @@ public class CucumberReportGeneratorMojo extends AbstractMojo {
public void execute() throws MojoExecutionException {

if (skip) {
getLog().info("Cucumber report generation is skipped.");
LOGGER.info("Cucumber report generation is skipped.");
return;
}

Expand Down Expand Up @@ -232,7 +236,7 @@ public void execute() throws MojoExecutionException {
}

ReportBuilder reportBuilder = new ReportBuilder(jsonFilesToProcess, configuration);
getLog().info("About to generate Cucumber report.");
LOGGER.info("About to generate Cucumber report.");
Reportable report = reportBuilder.generateReports();

if (checkBuildResult && (report == null || report.getFailedSteps() > 0 ||
Expand Down

0 comments on commit 237a382

Please sign in to comment.