gerrit/gerrit-antlr/BUCK
David Pursehouse cf6f4a4eb0 Remove unnecessary dependencies
Since [1] dependencies to targets used in $(location //path/to:target)
macro are added implicitly.

Similar build rules simplification was applied in I6c8ddb40ef and in
Id98257e111.

[1] https://github.com/facebook/buck/issues/128

Change-Id: Ife9717f37a9cdf55358da61b7e9df26fdf23c501
2015-09-18 06:02:35 +00:00

37 lines
735 B
Python

PARSER_DEPS = [
':query_exception',
'//lib/antlr:java_runtime',
]
java_library(
name = 'query_exception',
srcs = ['src/main/java/com/google/gerrit/server/query/QueryParseException.java'],
visibility = ['PUBLIC'],
)
genantlr(
name = 'query_antlr',
srcs = ['src/main/antlr3/com/google/gerrit/server/query/Query.g'],
out = 'query_antlr.src.zip',
)
java_library(
name = 'lib',
srcs = [':query_antlr'],
deps = PARSER_DEPS,
)
# Hack necessary to expose ANTLR generated code as JAR to Eclipse.
genrule(
name = 'query_link',
cmd = 'ln -s $(location :lib) $OUT',
out = 'query_parser.jar',
)
prebuilt_jar(
name = 'query_parser',
binary_jar = ':query_link',
deps = PARSER_DEPS,
visibility = ['PUBLIC'],
)