Skip to content

Commit

Permalink
move plexus-utils to scope test (#79)
Browse files Browse the repository at this point in the history
* move plexus-utils to scope test
* update plexus-utils
* fix generics
  • Loading branch information
elharo authored Feb 14, 2021
1 parent 0169883 commit e6249ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.10</version>
<scope>provided</scope>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>3.1.0</version>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeThat;

import org.apache.commons.io.IOUtils;
import org.apache.maven.shared.utils.Os;
import org.apache.maven.shared.utils.testhelpers.FileTestHelper;
import org.codehaus.plexus.util.InterpolationFilterReader;
Expand Down Expand Up @@ -653,9 +654,9 @@ public void copyFileWithFilteringAndNewerDestinationAndMatchingContent()
);
}

private FileUtils.FilterWrapper[] wrappers( String key, String value )
private static FileUtils.FilterWrapper[] wrappers( String key, String value )
{
final Map<String, String> map = new HashMap<>();
final Map<String, Object> map = new HashMap<>();
map.put( key, value );
return new FileUtils.FilterWrapper[]
{
Expand Down Expand Up @@ -688,7 +689,7 @@ private static void assertFileContent( @Nonnull File file, @Nonnull String expec
assertEquals(
"Expected " + file.getPath() + " to contain: " + expected,
expected,
IOUtil.toString( in )
IOUtils.toString( in )
);
}
}
Expand Down

0 comments on commit e6249ce

Please sign in to comment.