• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 Google LLC. All rights reserved.
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
15load("//kotlin:rules.bzl", "kt_jvm_library", "kt_jvm_test")
16
17licenses(["notice"])
18
19kt_jvm_library(
20    name = "beer_lib",
21    srcs = ["Beer.kt"],
22    deps = [
23        "@dagger",
24        "@maven//:javax_inject_jsr330_api",
25    ],
26)
27
28kt_jvm_test(
29    name = "beer",
30    main_class = "beer.BeerKt",
31    tags = ["darwin_x86_64_compatible"],
32    runtime_deps = [":beer_lib"],
33)
34
35# Regression test for b/123767247
36sh_test(
37    name = "build_data_test",
38    srcs = ["build_data_test.sh"],
39    data = [
40        ":libbeer_lib.jar",
41    ],
42    env = {
43        "TEST_JAR": "$(location :libbeer_lib.jar)",
44    },
45)
46