From fe8eda84acca3f78dd20467109319d578dd3d438 Mon Sep 17 00:00:00 2001 From: arieki <46558947+arieki@users.noreply.github.com> Date: Wed, 3 May 2023 04:16:13 +0700 Subject: [PATCH] Fixed TestNG slf4j NoClassDefFoundError (#465) Signed-off-by: Arie Kiswanto Co-authored-by: arie Co-authored-by: Scott M Stark --- .../testng/container/TestNGDeploymentAppender.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java b/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java index 219cd9fb1..c007e17c7 100644 --- a/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java +++ b/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java @@ -59,6 +59,12 @@ protected Archive buildArchive() { Filters.includeAll(), "com.beust"); + // Attempt to add org.slf4j, internal TestNG package 7.5+ use slf4j + optionalPackages( + archive, + Filters.includeAll(), + "org.slf4j"); + return archive; }