-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
40 lines (35 loc) · 900 Bytes
/
BUILD.bazel
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
40
package(default_visibility = ["//visibility:public"])
java_binary(
name = "hello-world",
args = ["world"],
main_class = "com.oasisdigital.example1.Greeter",
runtime_deps = [":hello-lib"],
)
java_binary(
name = "hello-worlds",
args = [
"world",
"world",
"world",
],
main_class = "com.oasisdigital.example1.Greeter",
runtime_deps = [":hello-lib"],
)
# "Every directory that contains buildable files should be a package."
# This is a counter-example:
java_library(
name = "hello-lib",
srcs = ["src/main/java/com/oasisdigital/example1/Greeter.java"],
deps = [
"@guava//jar",
],
)
java_test(
name = "greeting-output",
timeout = "short",
srcs = ["src/test/java/com/oasisdigital/example1/TestHello.java"],
test_class = "com.oasisdigital.example1.TestHello",
deps = [
":hello-lib",
],
)