Skip to content

Commit

Permalink
[MJAVADOC-705] Upgrade Maven Reporting API to 3.1.0
Browse files Browse the repository at this point in the history
Move to new API signature, but maintain old binary compatibility. This, in
general, can be avoided by extending AbstractMavenReport.

This closes #120
  • Loading branch information
michael-o committed Feb 6, 2022
1 parent ee4132f commit 5af4519
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ under the License.
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-api</artifactId>
<version>3.0</version>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.ResourceBundle;
import java.util.stream.Collectors;

import org.apache.maven.doxia.sink.Sink;
import org.apache.maven.doxia.siterenderer.RenderingContext;
import org.apache.maven.doxia.siterenderer.sink.SiteRendererSink;
import org.apache.maven.plugin.MojoExecutionException;
Expand All @@ -38,7 +39,6 @@
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.reporting.MavenReport;
import org.apache.maven.reporting.MavenReportException;
import org.codehaus.doxia.sink.Sink;
import org.codehaus.plexus.util.StringUtils;

/**
Expand Down Expand Up @@ -123,6 +123,12 @@ public String getDescription( Locale locale )
return description;
}

public void generate( org.codehaus.doxia.sink.Sink sink, Locale locale )
throws MavenReportException
{
generate( (Sink) sink, locale );
}

/** {@inheritDoc} */
@Override
public void generate( Sink sink, Locale locale )
Expand Down

0 comments on commit 5af4519

Please sign in to comment.