# Copyright (C) 2016 The Android Open Source Project
#
# 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.

# Syntactic sugar for native java_library() rule:
#   accept exported_deps attributes

def java_library2(deps=[], exported_deps=[], exports=[], **kwargs):
  if exported_deps:
    deps = deps + exported_deps
    exports = exports + exported_deps
  native.java_library(
    deps = deps,
    exports = exports,
    **kwargs)
