Skip to content

Commit 28ec3a8

Browse files
Filter out duplicate resources
1 parent 89828e5 commit 28ec3a8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

java/private/create_jvm_test_suite.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def create_jvm_test_suite(
8888
)
8989
if not _contains_label(deps or [], lib_dep_label):
9090
deps.append(lib_dep_label)
91+
if "resources" in library_attributes:
92+
# Prevent duplicate resources from appearing in classpath
93+
kwargs.pop("resources")
9194

9295
tests = []
9396

java/test/com/github/bazel_contrib/contrib_rules_jvm/junit5/JavaTestSuiteTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.io.IOException;
77
import java.util.ArrayList;
88
import java.util.List;
9-
import java.util.concurrent.atomic.AtomicInteger;
109
import java.util.zip.ZipFile;
1110

1211
import static org.junit.jupiter.api.Assertions.assertEquals;

0 commit comments

Comments
 (0)