This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-project-info-reports-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 60cfdea [MPIR-453] Replace Commons IO in favor of standard APIs 60cfdea is described below commit 60cfdeaa49fc6e7f3ace58cb4e42fbb7622f06b5 Author: Michael Osipov <micha...@apache.org> AuthorDate: Fri Nov 17 22:35:05 2023 +0100 [MPIR-453] Replace Commons IO in favor of standard APIs --- pom.xml | 6 ------ .../java/org/apache/maven/report/projectinfo/ModulesReportTest.java | 6 ++++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 1277bbe..24766b9 100644 --- a/pom.xml +++ b/pom.xml @@ -428,12 +428,6 @@ under the License. <artifactId>commons-validator</artifactId> <version>1.7</version> </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>2.12.0</version> - <scope>test</scope> - </dependency> </dependencies> <build> diff --git a/src/test/java/org/apache/maven/report/projectinfo/ModulesReportTest.java b/src/test/java/org/apache/maven/report/projectinfo/ModulesReportTest.java index 79a3b4a..cf31fb3 100644 --- a/src/test/java/org/apache/maven/report/projectinfo/ModulesReportTest.java +++ b/src/test/java/org/apache/maven/report/projectinfo/ModulesReportTest.java @@ -21,6 +21,8 @@ package org.apache.maven.report.projectinfo; import java.io.File; import java.lang.reflect.Field; import java.net.URL; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; import java.util.Collections; import com.meterware.httpunit.GetMethodWebRequest; @@ -28,7 +30,7 @@ import com.meterware.httpunit.TextBlock; import com.meterware.httpunit.WebConversation; import com.meterware.httpunit.WebRequest; import com.meterware.httpunit.WebResponse; -import org.apache.commons.io.FileUtils; + import org.apache.maven.plugin.testing.SilentLog; import org.apache.maven.report.projectinfo.stubs.SubProject1Stub; import org.codehaus.plexus.util.ReflectionUtils; @@ -122,6 +124,6 @@ public class ModulesReportTest extends AbstractProjectInfoTestCase { assertFalse( "Variable 'sitePublishLocation' should be interpolated", - FileUtils.readFileToString(getGeneratedReport("modules.html")).contains("sitePublishLocation")); + new String(Files.readAllBytes(getGeneratedReport("modules.html").toPath()), StandardCharsets.UTF_8).contains("sitePublishLocation")); } }