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# Description: Kotlin building rules tools 16load("//bazel:deploy_jar_freshness_golden_test.bzl", "deploy_jar_freshness_golden_test") 17 18licenses(["notice"]) 19 20package(default_visibility = ["//:internal"]) 21 22# JAR that contains a marker entry, for identifying apps built by rules_kotlin. 23genrule( 24 name = "build_marker", 25 outs = ["kotlin_build_marker.jar"], 26 cmd = """$(location @bazel_tools//tools/zip:zipper) c $@ "assets/_kotlin=" """, 27 tools = ["@bazel_tools//tools/zip:zipper"], 28) 29 30deploy_jar_freshness_golden_test( 31 name = "source_jar_zipper_freshness_test", 32 current_jar = "//tools/bin:source_jar_zipper_binary", 33 newly_built_jar = "//tools/java/com/google/devtools/kotlin:source_jar_zipper_deploy.jar", 34) 35