You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/06/11 12:25:31 UTC

[maven-reporting-exec] branch MSHARED-925 created (now 0a91364)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch MSHARED-925
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git.


      at 0a91364  remove guava dependency

This branch includes the following new commits:

     new 0a91364  remove guava dependency

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-reporting-exec] 01/01: remove guava dependency

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch MSHARED-925
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git

commit 0a9136466114f64ffb6593ccaf7d03bfe8dc5b4c
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Thu Jun 11 08:25:13 2020 -0400

    remove guava dependency
---
 pom.xml                                                      |  7 -------
 .../maven/reporting/exec/TestDefaultMavenReportExecutor.java | 12 ++++++------
 2 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/pom.xml b/pom.xml
index 87560fc..d59c42b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -215,13 +215,6 @@
         </exclusion>
       </exclusions>
     </dependency>
-    <dependency>
-      <groupId>com.google.guava</groupId>
-      <artifactId>guava</artifactId>
-      <version>r07</version>
-      <scope>test</scope>
-    </dependency>
-
 
     <dependency>
       <groupId>org.apache.maven.doxia</groupId>
diff --git a/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java b/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java
index 89c3726..53332dc 100644
--- a/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java
+++ b/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java
@@ -19,7 +19,6 @@ package org.apache.maven.reporting.exec;
  * under the License.
  */
 
-import com.google.common.collect.Lists;
 import org.apache.maven.DefaultMaven;
 import org.apache.maven.Maven;
 import org.apache.maven.RepositoryUtils;
@@ -55,6 +54,7 @@ import org.sonatype.aether.repository.WorkspaceReader;
 import org.sonatype.aether.repository.WorkspaceRepository;
 
 import java.io.File;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 
@@ -156,7 +156,7 @@ public class TestDefaultMavenReportExecutor
 
             MavenSession mavenSession = getMavenSession( getLocalArtifactRepository(), mavenProject );
             mavenSession.setCurrentProject( mavenProject );
-            mavenSession.setProjects( Lists.<MavenProject>newArrayList( mavenProject ) );
+            mavenSession.setProjects( Arrays.asList( mavenProject ) );
             mavenReportExecutorRequest.setMavenSession( mavenSession );
 
             ReportPlugin reportPlugin = new ReportPlugin();
@@ -169,7 +169,7 @@ public class TestDefaultMavenReportExecutor
                 reportPlugin.getReportSets().add( reportSet );
             }
 
-            List<ReportPlugin> reportPlugins = Lists.newArrayList( reportPlugin );
+            List<ReportPlugin> reportPlugins = Arrays.asList( reportPlugin );
 
             mavenReportExecutorRequest.setReportPlugins( reportPlugins.toArray( new ReportPlugin[1] ) );
 
@@ -251,7 +251,7 @@ public class TestDefaultMavenReportExecutor
             @Override
             public List<MavenProject> getProjects()
             {
-                return Lists.newArrayList( mavenProject );
+                return Arrays.asList( mavenProject );
             }
 
             @Override
@@ -342,13 +342,13 @@ public class TestDefaultMavenReportExecutor
             @Override
             public List<String> getCompileSourceRoots()
             {
-                return Lists.newArrayList( "src/main/java" );
+                return Arrays.asList( "src/main/java" );
             }
 
             @Override
             public List<String> getTestCompileSourceRoots()
             {
-                return Lists.newArrayList( "src/test/java" );
+                return Arrays.asList( "src/test/java" );
             }
         };