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# Functional tests for the experimental Dagger SPI 17 18package(default_visibility = ["//:src"]) 19 20load("//:test_defs.bzl", "GenJavaTests") 21 22java_plugin( 23 name = "test_plugin", 24 srcs = ["TestPlugin.java"], 25 deps = [ 26 "//java/dagger/model", 27 "//java/dagger/spi", 28 "@google_bazel_common//third_party/java/auto:service", 29 "@google_bazel_common//third_party/java/guava", 30 "@google_bazel_common//third_party/java/javapoet", 31 ], 32) 33 34java_library( 35 name = "test_lib", 36 exported_plugins = [":test_plugin"], 37) 38 39GenJavaTests( 40 name = "tests", 41 srcs = glob( 42 ["*.java"], 43 exclude = ["TestPlugin.java"], 44 ), 45 functional = 0, 46 test_only_deps = [ 47 "@google_bazel_common//third_party/java/truth", 48 "@google_bazel_common//third_party/java/junit", 49 ], 50 deps = [ 51 ":test_lib", 52 "//:dagger_with_compiler", 53 "@google_bazel_common//third_party/java/guava", 54 ], 55) 56