aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/java_basic_test/input.bzl
blob: db0d0643259f8d2d4168c6e7fc720c4a8ac07449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# buildifier: disable=module-docstring
# buildifier: disable=function-docstring
def exercise_the_api():
    var1 = java_common.JavaRuntimeInfo
    var2 = JavaInfo
    var3 = java_proto_common

exercise_the_api()

def my_rule_impl(ctx):
    return []

java_related_rule = rule(
    implementation = my_rule_impl,
    doc = "This rule does java-related things.",
    attrs = {
        "first": attr.label(mandatory = True, allow_single_file = True),
        "second": attr.string_dict(mandatory = True),
        "third": attr.output(mandatory = True),
        "fourth": attr.bool(default = False, mandatory = False),
    },
)