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