xref: /aosp_15_r20/external/dagger2/third_party/java/truth/BUILD (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
1*f585d8a3SJacky Wang# Copyright (C) 2021 The Dagger Authors.
2*f585d8a3SJacky Wang#
3*f585d8a3SJacky Wang# Licensed under the Apache License, Version 2.0 (the "License");
4*f585d8a3SJacky Wang# you may not use this file except in compliance with the License.
5*f585d8a3SJacky Wang# You may obtain a copy of the License at
6*f585d8a3SJacky Wang#
7*f585d8a3SJacky Wang# http://www.apache.org/licenses/LICENSE-2.0
8*f585d8a3SJacky Wang#
9*f585d8a3SJacky Wang# Unless required by applicable law or agreed to in writing, software
10*f585d8a3SJacky Wang# distributed under the License is distributed on an "AS IS" BASIS,
11*f585d8a3SJacky Wang# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*f585d8a3SJacky Wang# See the License for the specific language governing permissions and
13*f585d8a3SJacky Wang# limitations under the License.
14*f585d8a3SJacky Wang
15*f585d8a3SJacky Wang# BUILD rules for https://github.com/google/truth
16*f585d8a3SJacky Wang
17*f585d8a3SJacky Wangload("@rules_java//java:defs.bzl", "java_library")
18*f585d8a3SJacky Wang
19*f585d8a3SJacky Wangpackage(default_visibility = ["//:src"])
20*f585d8a3SJacky Wang
21*f585d8a3SJacky Wangjava_library(
22*f585d8a3SJacky Wang    name = "truth",
23*f585d8a3SJacky Wang    testonly = 1,
24*f585d8a3SJacky Wang    exports = [
25*f585d8a3SJacky Wang        "@maven//:com_google_truth_extensions_truth_java8_extension",
26*f585d8a3SJacky Wang        "@maven//:com_google_truth_truth",
27*f585d8a3SJacky Wang    ],
28*f585d8a3SJacky Wang    # TODO(cpovirk): This would make more sense in deps, but Bazel won't allow
29*f585d8a3SJacky Wang    # that unless we add dummy srcs.
30*f585d8a3SJacky Wang    runtime_deps = [
31*f585d8a3SJacky Wang        "//third_party/java/asm",
32*f585d8a3SJacky Wang    ],
33*f585d8a3SJacky Wang)
34