From f76b4f66d88eafd7d90b8f691d6fbdfe8b34b3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Sk=C3=B6ld?= Date: Mon, 2 Aug 2021 12:28:40 -0400 Subject: [PATCH] Add --exclude_build_data arguemtn to singlejar invocation Adding --exclude_build_data so that the build-data.properties won't be created. This file contains contains information about the build host and will therefore break cacheing for users that are not on the same platform as the cached artifact. build-data.properties is not created in pure java artifacts so with this change, kotlin artifacts will be inline with java. --- kotlin/internal/jvm/compile.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin/internal/jvm/compile.bzl b/kotlin/internal/jvm/compile.bzl index 9f6408612..f838f6e39 100644 --- a/kotlin/internal/jvm/compile.bzl +++ b/kotlin/internal/jvm/compile.bzl @@ -234,6 +234,7 @@ def _fold_jars_action(ctx, rule_kind, toolchains, output_jar, input_jars, action args.add_all([ "--normalize", "--compression", + "--exclude_build_data", ]) args.add_all([ "--deploy_manifest_lines",