• 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 = "internal",
21    srcs = ["Internal.kt"],
22)
23
24kt_jvm_test(
25    name = "InternalTest",
26    srcs = ["InternalTest.kt"],
27    deps = [
28        ":internal",
29        "@maven//:com_google_truth_truth",
30        "@maven//:junit_junit",
31    ],
32)
33
34kt_jvm_library(
35    name = "internal_test_separate",
36    testonly = 1,
37    srcs = ["InternalTest.kt"],
38    deps = [
39        ":internal",
40        "@maven//:com_google_truth_truth",
41        "@maven//:junit_junit",
42    ],
43)
44
45java_test(
46    name = "InternalTest_separate",
47    test_class = "internal.InternalTest",
48    runtime_deps = [":internal_test_separate"],
49)
50