forked from bazelbuild/rules_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
101 lines (91 loc) · 2.49 KB
/
BUILD
File metadata and controls
101 lines (91 loc) · 2.49 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(
default_applicable_licenses = ["@rules_java//:license"],
default_visibility = ["//visibility:public"],
)
licenses(["notice"])
filegroup(
name = "srcs",
srcs = glob(["**"]) + [
"//java/bazel:srcs",
"//java/bazel/common:srcs",
"//java/bazel/rules:srcs",
"//java/common:srcs",
"//java/private:srcs",
"//java/proto:srcs",
"//java/runfiles:srcs",
"//java/toolchains:srcs",
],
visibility = ["//:__pkg__"],
)
bzl_library(
name = "rules",
srcs = ["defs.bzl"],
visibility = ["//visibility:public"],
deps = [
":core_rules",
"//java/common",
"//java/toolchains:toolchain_rules",
"@com_google_protobuf//bazel:java_lite_proto_library_bzl",
"@com_google_protobuf//bazel:java_proto_library_bzl",
],
)
bzl_library(
name = "core_rules",
srcs = [
"java_binary.bzl",
"java_import.bzl",
"java_library.bzl",
"java_plugin.bzl",
"java_single_jar.bzl",
"java_test.bzl",
],
visibility = ["//visibility:public"],
deps = [
"//java/bazel/common", # copybara-use-repo-external-label
"//java/bazel/rules", # copybara-use-repo-external-label
"//java/common",
"//java/common/rules:core_rules",
"//java/private:native_bzl",
],
)
bzl_library(
name = "utils",
srcs = ["java_utils.bzl"],
visibility = ["//visibility:public"],
)
exports_files(
["java_single_jar.bzl"],
visibility = ["//test:__pkg__"],
)
bzl_library(
name = "java_single_jar",
srcs = ["java_single_jar.bzl"],
visibility = ["//visibility:public"],
deps = [
"//java/bazel/rules:java_single_jar_bzl", # copybara-use-repo-external-label
],
)
bzl_library(
name = "http_jar_bzl",
srcs = ["http_jar.bzl"],
visibility = ["//visibility:public"],
deps = ["@compatibility_proxy//:proxy_bzl"],
)
filegroup(
name = "for_bazel_tests",
testonly = 1,
srcs = [
"BUILD",
":core_rules",
":java_single_jar",
":rules",
"//java/bazel:for_bazel_tests", # copybara-use-repo-external-label
"//java/bazel/rules:for_bazel_tests", # copybara-use-repo-external-label
"//java/common:for_bazel_tests",
"//java/private:for_bazel_tests",
"//java/toolchains:for_bazel_tests",
"@bazel_skylib//:test_deps",
],
visibility = ["//visibility:public"],
)