xref: /aosp_15_r20/external/bazelbuild-kotlin-rules/bazel/BUILD (revision 3a22c0a33dd99bcca39a024d43e6fbcc55c2806e)
1*3a22c0a3SAlix# Copyright 2022 Google LLC. All rights reserved.
2*3a22c0a3SAlix#
3*3a22c0a3SAlix# Licensed under the Apache License, Version 2.0 (the License);
4*3a22c0a3SAlix# you may not use this file except in compliance with the License.
5*3a22c0a3SAlix# You may obtain a copy of the License at
6*3a22c0a3SAlix#
7*3a22c0a3SAlix#     http://www.apache.org/licenses/LICENSE-2.0
8*3a22c0a3SAlix#
9*3a22c0a3SAlix# Unless required by applicable law or agreed to in writing, software
10*3a22c0a3SAlix# distributed under the License is distributed on an "AS IS" BASIS,
11*3a22c0a3SAlix# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*3a22c0a3SAlix# See the License for the specific language governing permissions and
13*3a22c0a3SAlix# limitations under the License.
14*3a22c0a3SAlix
15*3a22c0a3SAlixlicenses(["notice"])  # Apache 2.0
16*3a22c0a3SAlix
17*3a22c0a3SAlixpackage(default_visibility = ["//visibility:public"])
18*3a22c0a3SAlix
19*3a22c0a3SAlixjava_library(
20*3a22c0a3SAlix    name = "auto_service",
21*3a22c0a3SAlix    exported_plugins = [":auto_service_plugin"],
22*3a22c0a3SAlix    exports = ["@maven//:com_google_auto_service_auto_service_annotations"],
23*3a22c0a3SAlix)
24*3a22c0a3SAlix
25*3a22c0a3SAlixjava_plugin(
26*3a22c0a3SAlix    name = "auto_service_plugin",
27*3a22c0a3SAlix    processor_class = "com.google.auto.service.processor.AutoServiceProcessor",
28*3a22c0a3SAlix    visibility = ["//visibility:private"],
29*3a22c0a3SAlix    deps = ["@maven//:com_google_auto_service_auto_service"],
30*3a22c0a3SAlix)
31*3a22c0a3SAlix
32*3a22c0a3SAlixjava_plugin(
33*3a22c0a3SAlix    name = "auto_value_plugin",
34*3a22c0a3SAlix    processor_class = "com.google.auto.value.processor.AutoValueProcessor",
35*3a22c0a3SAlix    deps = ["@maven//:com_google_auto_value_auto_value"],
36*3a22c0a3SAlix)
37*3a22c0a3SAlix
38*3a22c0a3SAlixjava_binary(
39*3a22c0a3SAlix    name = "jacoco_cli",
40*3a22c0a3SAlix    main_class = "org.jacoco.cli.internal.Main",
41*3a22c0a3SAlix    runtime_deps = [
42*3a22c0a3SAlix        "@bazel_tools//tools/jdk:JacocoCoverage",
43*3a22c0a3SAlix        "@maven//:org_jacoco_org_jacoco_cli",
44*3a22c0a3SAlix    ],
45*3a22c0a3SAlix)
46*3a22c0a3SAlix
47*3a22c0a3SAlixgenrule(
48*3a22c0a3SAlix    name = "stub_tool",
49*3a22c0a3SAlix    outs = ["stub_tool.sh"],
50*3a22c0a3SAlix    cmd = "exit 1",
51*3a22c0a3SAlix    executable = True,
52*3a22c0a3SAlix)
53