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