Skip to content

Commit 79a5661

Browse files
authored
provide way to pass javacopts to java_binary (#19)
* uber_jar_javacopts * update * show all test output * update
1 parent ec1f8ab commit 79a5661

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ Sometimes, you may need some logic to run before the compose test containers com
110110
## extra_docker_compose_up_args
111111

112112
You can append extra arguments to the `docker compose up` command using `extra_docker_compose_up_args`. See [examples/pre-compose-up-script-test](examples/pre-compose-up-script-test) for an example.
113+
114+
## javacopts
115+
116+
You can pass `javacopts` when building the uber junit test binary using `uber_jar_javacopts`.

docker_compose_test/docker_compose_test.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def junit_docker_compose_test(
6060
test_image_base = None,
6161
test_srcs = [],
6262
test_deps = [],
63+
uber_jar_javacopts = [],
6364
data = [],
6465
tags = [],
6566
size = "large",
@@ -79,6 +80,7 @@ def junit_docker_compose_test(
7980
testonly = True,
8081
deps = test_deps,
8182
resources = test_deps,
83+
javacopts = uber_jar_javacopts,
8284
main_class = "not_used",
8385
)
8486

examples/WORKSPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ maven_install(
7272
"org.junit.platform:junit-platform-console-standalone:1.10.0",
7373
],
7474
repositories = [
75-
"https://maven.google.com",
7675
"https://repo1.maven.org/maven2",
7776
],
7877
maven_install_json = "//:maven_install.json",

0 commit comments

Comments
 (0)