-
Notifications
You must be signed in to change notification settings - Fork 4k
/
BUILD
39 lines (32 loc) · 825 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
package(default_visibility = ["//visibility:public"])
java_binary(
name = "hello-world",
main_class = "com.example.myproject.Greeter",
runtime_deps = [":hello-lib"],
)
java_library(
name = "hello-lib",
srcs = glob(
["*.java"],
exclude = ["HelloErrorProne.java"],
),
)
java_binary(
name = "hello-resources",
main_class = "com.example.myproject.Greeter",
runtime_deps = [":custom-greeting"],
)
java_library(
name = "custom-greeting",
srcs = ["Greeter.java"],
resources = ["//examples/java-native/src/main/resources:greeting"],
)
java_library(
name = "hello-error-prone",
srcs = ["HelloErrorProne.java"],
)
filegroup(
name = "srcs",
srcs = ["BUILD"] + glob(["**/*.java"]),
)