1# Copyright (C) 2017 The Dagger Authors. 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 15# Description: 16# A JSR-330 compliant dependency injection system for android and java 17 18package(default_visibility = ["//:src"]) 19 20load( 21 "//:build_defs.bzl", 22 "DOCLINT_HTML_AND_SYNTAX", 23 "SOURCE_7_TARGET_7", 24) 25load("//tools:maven.bzl", "POM_VERSION", "pom_file") 26 27java_library( 28 name = "core", 29 srcs = glob(["**/*.java"]), 30 javacopts = SOURCE_7_TARGET_7 + DOCLINT_HTML_AND_SYNTAX, 31 tags = ["maven_coordinates=com.google.dagger:dagger:" + POM_VERSION], 32 exports = ["@google_bazel_common//third_party/java/jsr330_inject"], 33 deps = [ 34 "@google_bazel_common//third_party/java/jsr330_inject", 35 ], 36) 37 38pom_file( 39 name = "pom", 40 artifact_id = "dagger", 41 artifact_name = "Dagger", 42 targets = [":core"], 43) 44 45filegroup( 46 name = "javadoc-srcs", 47 srcs = glob(["**/*"]), 48) 49 50load("@google_bazel_common//tools/javadoc:javadoc.bzl", "javadoc_library") 51 52javadoc_library( 53 name = "core-javadoc", 54 srcs = [":javadoc-srcs"], 55 exclude_packages = ["dagger.internal"], 56 root_packages = ["dagger"], 57 deps = ["@google_bazel_common//third_party/java/jsr330_inject"], 58) 59