This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git
commit 61f48e59403d2f3ed0660753f5ecd1cec03b4ebb Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Sat Oct 31 12:07:59 2026 +0000 Migrate massembly-730 IT to JUnit 5 and drop its maven-jar-plugin pin --- src/it/projects/bugs/massembly-730/pom.xml | 10 ++-------- .../java/fr/husta/test/assembly/JarWithDependenciesTest.java | 8 ++++---- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/it/projects/bugs/massembly-730/pom.xml b/src/it/projects/bugs/massembly-730/pom.xml index 34fe1d3c..a98e7f23 100644 --- a/src/it/projects/bugs/massembly-730/pom.xml +++ b/src/it/projects/bugs/massembly-730/pom.xml @@ -38,11 +38,6 @@ under the License. <finalName>${project.artifactId}</finalName> <plugins> - <plugin> - <artifactId>maven-jar-plugin</artifactId> - <version>2.5</version> - </plugin> - <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> @@ -100,9 +95,8 @@ under the License. <!-- Tests --> <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.13.1</version> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> diff --git a/src/it/projects/bugs/massembly-730/src/test/java/fr/husta/test/assembly/JarWithDependenciesTest.java b/src/it/projects/bugs/massembly-730/src/test/java/fr/husta/test/assembly/JarWithDependenciesTest.java index 26c080e5..c6616bb6 100644 --- a/src/it/projects/bugs/massembly-730/src/test/java/fr/husta/test/assembly/JarWithDependenciesTest.java +++ b/src/it/projects/bugs/massembly-730/src/test/java/fr/husta/test/assembly/JarWithDependenciesTest.java @@ -19,7 +19,7 @@ package fr.husta.test.assembly; */ -import static org.junit.Assert.*; +import static org.junit.jupiter.api.Assertions.*; import java.io.IOException; import java.io.InputStream; @@ -27,13 +27,13 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; import org.apache.commons.io.IOUtils; -import org.junit.Test; +import org.junit.jupiter.api.Test; -public class JarWithDependenciesTest +class JarWithDependenciesTest { @Test - public void checkMetaInfContent() throws IOException + void checkMetaInfContent() throws IOException { // check META-INF/services/java.sql.Driver exists JarFile jar = new JarFile("target/issue-mvn-assembly-plugin-730-jar-with-dependencies.jar");
