-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathbasic_java_library.bzl
More file actions
39 lines (35 loc) · 1.39 KB
/
basic_java_library.bzl
File metadata and controls
39 lines (35 loc) · 1.39 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
# Copyright 2021 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Common code for reuse across java_* rules
"""
load("//java/common:java_semantics.bzl", "semantics")
load("//java/private:java_common.bzl", "java_common")
load("//java/private:java_info.bzl", "JavaPluginInfo")
load(":rule_util.bzl", "merge_attrs")
# copybara: default multiline visibility
BASIC_JAVA_LIBRARY_IMPLICIT_ATTRS = merge_attrs(
{
"_java_plugins": attr.label(
default = semantics.JAVA_PLUGINS_FLAG_ALIAS_LABEL,
providers = [JavaPluginInfo],
),
# TODO(b/245144242): Used by IDE integration, remove when toolchains are used
"_java_toolchain": attr.label(
default = semantics.JAVA_TOOLCHAIN_LABEL,
providers = [java_common.JavaToolchainInfo],
),
"_use_auto_exec_groups": attr.bool(default = True),
},
)