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 = "Bar", 21 srcs = ["Bar.kt"], 22) 23 24kt_jvm_library( 25 name = "FooBar", 26 srcs = ["FooBar.java"], 27 deps = [":Bar"], 28) 29 30java_library( 31 name = "Qux", 32 srcs = ["Qux.java"], 33) 34 35kt_jvm_library( 36 name = "BazQux", 37 srcs = ["BazQux.kt"], 38 deps = [":Qux"], 39) 40 41kt_jvm_library( 42 name = "QuuxCorgeGrault", 43 srcs = [ 44 "Corge.java", 45 "QuuxCorge.kt", 46 "QuuxCorgeGrault.java", 47 ], 48) 49 50kt_jvm_test( 51 name = "Main", 52 srcs = ["Main.kt"], 53 main_class = "metasyntactic.Main", 54 tags = ["darwin_x86_64_compatible"], 55 deps = [ 56 ":BazQux", 57 ":FooBar", 58 ":QuuxCorgeGrault", 59 ], 60) 61