diff options
author | Erik Kuefler <ekuefler@gmail.com> | 2015-11-12 16:45:43 +0000 |
---|---|---|
committer | Lukacs Berki <lberki@google.com> | 2015-11-13 10:18:40 +0000 |
commit | 3f6599b7039a1686a41bdc6c051713a0d3ca032d (patch) | |
tree | 2c1b93c8d42642115f76cb39aae195fdd104dc95 /tools/build_defs/groovy/groovy.BUILD | |
parent | bfae536431e6b689403703e5af465b074f04b340 (diff) |
Make groovy_binary implicitly depend on the groovy core language jar.
It's not obvious that this is necessary when writing a simple Groovy class that
doesn't directly reference anything from the Groovy runtime, but failure to
include it will result in a mysterious failure to find the main class. This
can trip people up who are writing simple Hello World apps.
--
Change-Id: I8064e537293fa9218efa3ce351dbd693868d0242
Reviewed-on: https://bazel-review.googlesource.com/#/c/2264/
MOS_MIGRATED_REVID=107687283
Diffstat (limited to 'tools/build_defs/groovy/groovy.BUILD')
-rw-r--r-- | tools/build_defs/groovy/groovy.BUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/build_defs/groovy/groovy.BUILD b/tools/build_defs/groovy/groovy.BUILD index 4f65877a3f..96de6cfdb9 100644 --- a/tools/build_defs/groovy/groovy.BUILD +++ b/tools/build_defs/groovy/groovy.BUILD @@ -3,3 +3,8 @@ filegroup( srcs = glob(["groovy-2.4.4/**"], exclude_directories=0), visibility = ["//visibility:public"], ) +java_import( + name = "groovy", + jars = ["groovy-2.4.4/lib/groovy-2.4.4.jar"], + visibility = ["//visibility:public"], +) |