Skip to content
Permalink
Browse files
Merge pull request #43 from apache/dependabot/maven/org.apache.maven.…
…reporting-maven-reporting-api-3.1.0

RAT-297: Bump maven-reporting-api from 3.0 to 3.1.0 / do not rely on deprecated Sink anymore
  • Loading branch information
ottlinger committed Mar 28, 2022
2 parents 037bf35 + 2345795 commit b79282cb9741dbd8cf15878f57718a08de8c32bb
Showing 3 changed files with 8 additions and 8 deletions.
@@ -235,7 +235,7 @@
<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.shared</groupId>
@@ -27,6 +27,8 @@
import org.apache.maven.artifact.resolver.ArtifactResolver;
import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
import org.apache.maven.artifact.versioning.VersionRange;
import org.apache.maven.doxia.sink.Sink;
import org.apache.maven.doxia.sink.impl.SinkEventAttributeSet;
import org.apache.maven.doxia.site.decoration.Body;
import org.apache.maven.doxia.site.decoration.DecorationModel;
import org.apache.maven.doxia.site.decoration.Skin;
@@ -44,22 +46,17 @@
import org.apache.maven.reporting.MavenReport;
import org.apache.maven.reporting.MavenReportException;
import org.apache.rat.Defaults;
import org.codehaus.doxia.sink.Sink;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.*;


/**
* Generates a report with Rat's output.
*/
@SuppressWarnings("deprecation") // MavenReport invokes the deprecated Sink implementation
@Mojo(name = "rat", requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true)
public class RatReportMojo extends AbstractRatMojo implements MavenReport {
public static final String DOT_HTML = ".html";
@@ -216,7 +213,7 @@ public void generate(Sink sink, Locale locale) throws MavenReportException {
sink.paragraph_();

sink.paragraph();
sink.verbatim(true);
sink.verbatim(SinkEventAttributeSet.BOXED);
try {
sink.text(createReport(Defaults.getDefaultStyleSheet()));
} catch (MojoExecutionException | MojoFailureException e) {
@@ -55,6 +55,9 @@ The <action> type attribute can be add,update,fix,remove.

<body>
<release version="0.14-SNAPSHOT" date="2020-xx-xx" description="Current SNAPSHOT - to be done">
<action issue="RAT-297" type="add" dev="pottlinger" due-to="Michael Osipov">
Update maven-reporting-api from 3.0 to 3.1.0 and remove usage of deprecated Sink API.
</action>
<action issue="RAT-290" type="fix" dev="pottlinger" due-to="Jin Xu">
Update animal-sniffer-maven-plugin from 1.20 to 1.21. Thanks to Jin Xu/Xeno Amess.
</action>

0 comments on commit b79282c

Please sign in to comment.