Skip to content

Commit

Permalink
Fix Java skylark example tests
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=88373310
  • Loading branch information
kchodorow authored and hanwen committed Mar 13, 2015
1 parent 3a0c1b1 commit e2fa64d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ java_test(
srcs = ["TestHello.java"],
deps = [
"//examples/java-skylark/src/main/java/com/example/myproject:hello-lib",
"//third_party:junit4",
"//third_party:junit4-skylark",
],
)

Expand Down
11 changes: 11 additions & 0 deletions third_party/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package(default_visibility = ["//visibility:public"])

load("/tools/build_rules/java_rules_skylark", "java_library")

filegroup(
name = "protoc",
srcs = select({
Expand Down Expand Up @@ -120,6 +122,15 @@ java_import(
],
)

# For the java-skylark example.
java_library(
name = "junit4-skylark",
jars = [
"hamcrest/hamcrest-core-1.3.jar",
"junit/junit-4.11.jar",
],
)

java_import(
name = "asm",
jars = ["asm/asm-5.0.3.jar"],
Expand Down

0 comments on commit e2fa64d

Please sign in to comment.