Skip to content

Commit

Permalink
[MENFORCER-372] Drop PlexusTestCase and junit:junit dependency
Browse files Browse the repository at this point in the history
Closes #125
  • Loading branch information
Tim te Beek authored and slachiewicz committed Nov 21, 2021
1 parent 3047f7f commit e3f2f27
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 52 deletions.
11 changes: 1 addition & 10 deletions enforcer-rules/pom.xml
Expand Up @@ -64,7 +64,7 @@
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-common-artifact-filters</artifactId>
<artifactId>maven-shared-utils</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
Expand Down Expand Up @@ -107,11 +107,6 @@
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand All @@ -127,10 +122,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-util</artifactId>
</dependency>
<!-- needed for ArtifactCollector and maven-dependency-tree 2.2 -->
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down
Expand Up @@ -52,7 +52,6 @@
import org.apache.maven.model.Scm;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
import org.codehaus.plexus.PlexusTestCase;
import org.codehaus.plexus.util.xml.Xpp3Dom;

/**
Expand Down Expand Up @@ -348,7 +347,8 @@ public File getBasedir()
{
if ( baseDir == null )
{
baseDir = new File( PlexusTestCase.getBasedir() );
final String path = System.getProperty( "basedir" );
baseDir = null != path ? new File( path ) : new File( "" );
}
return baseDir;
}
Expand Down
5 changes: 0 additions & 5 deletions maven-enforcer-extension/pom.xml
Expand Up @@ -53,11 +53,6 @@
<artifactId>maven-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down
23 changes: 0 additions & 23 deletions maven-enforcer-plugin/pom.xml
Expand Up @@ -39,10 +39,6 @@
<description>The Loving Iron Fist of Maven</description>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
Expand All @@ -51,10 +47,6 @@
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.enforcer</groupId>
<artifactId>enforcer-api</artifactId>
Expand All @@ -68,21 +60,11 @@
<artifactId>enforcer-rules</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
Expand All @@ -93,11 +75,6 @@
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
23 changes: 11 additions & 12 deletions pom.xml
Expand Up @@ -68,6 +68,7 @@
<maven.version>3.1.1</maven.version>
<maven.site.path>enforcer-archives/enforcer-LATEST</maven.site.path>
<javaVersion>8</javaVersion>
<mockito.version>4.0.0</mockito.version>
<project.build.outputTimestamp>2021-07-26T21:04:56Z</project.build.outputTimestamp>
</properties>

Expand Down Expand Up @@ -127,23 +128,16 @@
<version>5.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- Needed as PlexusTestCase extends junit.framework.TestCase -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.0.0</version>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>4.0.0</version>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -179,9 +173,9 @@
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-util</artifactId>
<version>1.6.1</version>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.3.4</version>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
Expand Down Expand Up @@ -220,6 +214,11 @@
<artifactId>maven-jxr-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down

0 comments on commit e3f2f27

Please sign in to comment.