Skip to content

Commit c541451

Browse files
committed
Run the java depending on scala test
1 parent a5acc5a commit c541451

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

test/BUILD

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@ java_binary(
1414
# For now, we have to use a java_import proxy.
1515
java_import(
1616
name = "lib_import",
17-
jars = [":HelloLib_deploy.jar"],
17+
# these are the outputs of the scala_library targets
18+
jars = [":HelloLib_deploy.jar",
19+
"OtherLib_deploy.jar",
20+
"Exported_deploy.jar",
21+
"Runtime_deploy.jar",
22+
],
23+
runtime_deps = ["org_scala_lang__scala_library", "OtherJavaLib"]
24+
)
25+
26+
java_import(
27+
name = "org_scala_lang__scala_library",
28+
jars = ["@scala//:lib/scala-library.jar"]
1829
)
1930

2031
scala_binary(

test_run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ set -e
55
bazel build test/... \
66
&& bazel run test:ScalaBinary \
77
&& bazel run test:ScalaLibBinary \
8+
&& bazel run test:JavaBinary \
89
&& bazel test test/...
9-
10-
# TODO: this is also broken
11-
# && bazel run test:JavaBinary \

0 commit comments

Comments
 (0)