Skip to content

Commit 2c75fc9

Browse files
authored
chore: remove junit3 references (#487)
* chore: remove junit3 references also update surefire version in it-tests * refactor: replace hardcoded surefire version by property
1 parent e61e6fe commit 2c75fc9

File tree

21 files changed

+18
-433
lines changed

21 files changed

+18
-433
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@
237237
<goal>package</goal>
238238
</goals>
239239
<showErrors>true</showErrors>
240+
<filterProperties>
241+
<pluginPropertyUsedForFiltering>version.maven-surefire</pluginPropertyUsedForFiltering>
242+
</filterProperties>
240243
</configuration>
241244
<executions>
242245
<execution>

src/it/MJAR-30-excludes/pom.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
<packaging>jar</packaging>
2626
<name>Maven</name>
2727
<description>Tests excludes.</description>
28-
<dependencies>
29-
<dependency>
30-
<groupId>junit</groupId>
31-
<artifactId>junit</artifactId>
32-
<version>3.8.1</version>
33-
<scope>test</scope>
34-
</dependency>
35-
</dependencies>
3628
<build>
3729
<plugins>
3830
<plugin>
@@ -48,7 +40,7 @@
4840
</plugin>
4941
<plugin>
5042
<artifactId>maven-surefire-plugin</artifactId>
51-
<version>2.3</version>
43+
<version>@version.maven-surefire@</version>
5244
</plugin>
5345
</plugins>
5446
</build>

src/it/MJAR-30-excludes/src/test/java/foo/project003/AppTest.java

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/it/MJAR-30-excludes/src/test/resources/excluded-file.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/it/MJAR-30-excludes/src/test/resources/test-default-configuration.properties

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/it/MJAR-30-fullcontent/pom.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@
2626
<name>Maven</name>
2727
<description>Tests the normal behavior of jar-plugin.</description>
2828
<url>http://maven.apache.org</url>
29-
<dependencies>
30-
<dependency>
31-
<groupId>junit</groupId>
32-
<artifactId>junit</artifactId>
33-
<version>3.8.1</version>
34-
<scope>test</scope>
35-
</dependency>
36-
</dependencies>
3729
<build>
3830
<plugins>
3931
<plugin>
@@ -43,7 +35,7 @@
4335
</plugin>
4436
<plugin>
4537
<artifactId>maven-surefire-plugin</artifactId>
46-
<version>2.3</version>
38+
<version>@version.maven-surefire@</version>
4739
</plugin>
4840
</plugins>
4941
</build>

src/it/MJAR-30-fullcontent/src/test/java/foo/project001/AppTest.java

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/it/MJAR-30-fullcontent/src/test/resources/test-default-configuration.properties

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/it/MJAR-30-include/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ under the License.
4040
</plugin>
4141
<plugin>
4242
<artifactId>maven-surefire-plugin</artifactId>
43-
<version>2.3</version>
43+
<version>@version.maven-surefire@</version>
4444
</plugin>
4545
</plugins>
4646
</build>

src/it/MJAR-80-exclude/pom.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
<packaging>jar</packaging>
2626
<name>Maven</name>
2727
<description>Tests excludes.</description>
28-
<dependencies>
29-
<dependency>
30-
<groupId>junit</groupId>
31-
<artifactId>junit</artifactId>
32-
<version>3.8.1</version>
33-
<scope>test</scope>
34-
</dependency>
35-
</dependencies>
3628
<build>
3729
<plugins>
3830
<plugin>
@@ -55,7 +47,7 @@
5547
</plugin>
5648
<plugin>
5749
<artifactId>maven-surefire-plugin</artifactId>
58-
<version>2.3</version>
50+
<version>@version.maven-surefire@</version>
5951
</plugin>
6052
</plugins>
6153
</build>

0 commit comments

Comments
 (0)