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# GWT-specific files for Dagger 17 18load("@rules_java//java:defs.bzl", "java_library") 19load("//tools:maven.bzl", "pom_file") 20load("//:build_defs.bzl", "POM_VERSION") 21 22package(default_visibility = ["//:src"]) 23 24java_library( 25 name = "gwt", 26 resource_strip_prefix = "gwt/", 27 resources = glob(["**/*.gwt.xml"]), 28 tags = ["maven_coordinates=com.google.dagger:dagger-gwt:" + POM_VERSION], 29 exports = [ 30 ":manual_deps", 31 "//java/dagger:core", 32 ], 33) 34 35java_library( 36 name = "manual_deps", 37 tags = [ 38 "maven_coordinates=com.google.dagger:dagger:%s:jar:sources" % POM_VERSION, 39 "maven_coordinates=javax.inject:javax.inject:1:jar:sources", 40 ], 41 visibility = ["//visibility:private"], 42) 43 44pom_file( 45 name = "pom", 46 artifact_id = "dagger-gwt", 47 artifact_name = "Dagger GWT", 48 targets = [ 49 ":gwt", 50 ":manual_deps", 51 ], 52) 53