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 15"""kt_for_analysis""" 16 17load("//:visibility.bzl", "RULES_KOTLIN") 18load("//kotlin:compiler_plugin.bzl", "kt_compiler_plugin") 19load("//kotlin:jvm_import.bzl", "kt_jvm_import") 20load("//kotlin:jvm_library.bzl", "kt_jvm_library") 21load("//kotlin/common/testing:testing_rules.bzl", "kt_testing_rules") 22 23visibility(RULES_KOTLIN) 24 25kt_for_analysis = struct( 26 # go/keep-sorted start 27 java_binary = kt_testing_rules.wrap_for_analysis(native.java_binary), 28 java_import = kt_testing_rules.wrap_for_analysis(native.java_import), 29 java_library = kt_testing_rules.wrap_for_analysis(native.java_library), 30 java_plugin = kt_testing_rules.wrap_for_analysis(native.java_plugin), 31 kt_compiler_plugin = kt_testing_rules.wrap_for_analysis(kt_compiler_plugin), 32 kt_jvm_import = kt_testing_rules.wrap_for_analysis(kt_jvm_import), 33 kt_jvm_library = kt_testing_rules.wrap_for_analysis(kt_jvm_library), 34 # go/keep-sorted end 35) 36