1# Copyright 2019 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14"""Starlark rules for building Java projects.""" 15 16load("//java:java_binary.bzl", _java_binary = "java_binary") 17load("//java:java_import.bzl", _java_import = "java_import") 18load("//java:java_library.bzl", _java_library = "java_library") 19load("//java:java_plugin.bzl", _java_plugin = "java_plugin") 20load("//java:java_test.bzl", _java_test = "java_test") 21load("//java/common:java_common.bzl", _java_common = "java_common") 22load("//java/common:java_info.bzl", _JavaInfo = "JavaInfo") 23load("//java/common:java_plugin_info.bzl", _JavaPluginInfo = "JavaPluginInfo") 24load("//java/toolchains:java_package_configuration.bzl", _java_package_configuration = "java_package_configuration") 25load("//java/toolchains:java_runtime.bzl", _java_runtime = "java_runtime") 26load("//java/toolchains:java_toolchain.bzl", _java_toolchain = "java_toolchain") 27 28# Language rules 29 30java_binary = _java_binary 31java_test = _java_test 32java_library = _java_library 33java_plugin = _java_plugin 34java_import = _java_import 35 36# Toolchain rules 37 38java_runtime = _java_runtime 39java_toolchain = _java_toolchain 40java_package_configuration = _java_package_configuration 41 42# Proto rules 43# Deprecated: don't use java proto libraries from here 44java_proto_library = native.java_proto_library 45java_lite_proto_library = native.java_lite_proto_library 46 47# Modules and providers 48 49JavaInfo = _JavaInfo 50JavaPluginInfo = _JavaPluginInfo 51java_common = _java_common 52