blob: 1978a2642ba8e91990f194439bfb6bf5d14822f3 [file] [log] [blame]
# This is a canonical example of a genrule() that generates Java source code
# paired with a java_library() that compiles the output of the genrule() along
# with some hard-coded Java source code into a single library.
java_library(
name = 'meh',
srcs = ['Meh.java'],
)
java_library(
name = 'foo',
srcs = ['Foo.java'],
export_deps = True,
deps = [':meh']
)
java_library(
name = 'bar',
srcs = ['Bar.java'],
deps = [':foo'],
)
java_library(
name = 'raz',
srcs = ['Raz.java'],
deps = [':bar'],
)