Hi,
just a suggestion to improve error output. In my case:
java_test(
name = "example-tests",
srcs = glob(["src/test/java/**/*Test.java"],
deps = [
':example',
'@junit//jar',
'@hamcrest-all//jar',
],
)
cause error:
ERROR: /home/kruset/work/java/build-bench/build/bazel/BUILD:27:12: in deps attribute of java_test rule //:example-tests: deps not allowed without srcs; move to runtime_deps?.
The cause was that srcs globbing did not hit any files. It might be more useful if the rule gave at least a warning if the globbing did not produce files.