From 4001bd7d1b76b98eb4b8b9df3319d542d3ff9b4d Mon Sep 17 00:00:00 2001 From: Ben Lee Date: Sun, 30 Jun 2024 23:54:42 +0000 Subject: [PATCH] Publish bazelbuild/rules_kotlin@v1.9.6 --- modules/rules_kotlin/1.9.6/MODULE.bazel | 32 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_kotlin/1.9.6/presubmit.yml | 13 ++++++++ modules/rules_kotlin/1.9.6/source.json | 8 +++++ modules/rules_kotlin/metadata.json | 3 +- 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 modules/rules_kotlin/1.9.6/MODULE.bazel create mode 100644 modules/rules_kotlin/1.9.6/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_kotlin/1.9.6/presubmit.yml create mode 100644 modules/rules_kotlin/1.9.6/source.json diff --git a/modules/rules_kotlin/1.9.6/MODULE.bazel b/modules/rules_kotlin/1.9.6/MODULE.bazel new file mode 100644 index 00000000000..e9cf8b1f601 --- /dev/null +++ b/modules/rules_kotlin/1.9.6/MODULE.bazel @@ -0,0 +1,32 @@ +module( + name = "rules_kotlin", + version = "1.9.6", + compatibility_level = 1, + repo_name = "rules_kotlin", +) + +bazel_dep(name = "platforms", version = "0.0.6") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_java", version = "7.2.0") +bazel_dep(name = "rules_python", version = "0.23.1") +bazel_dep(name = "rules_cc", version = "0.0.8") + +rules_kotlin_extensions = use_extension( + "//src/main/starlark/core/repositories:bzlmod_setup.bzl", + "rules_kotlin_extensions", +) +use_repo( + rules_kotlin_extensions, + "com_github_google_ksp", + "com_github_jetbrains_kotlin", + "com_github_pinterest_ktlint", + "rules_android", +) + +register_toolchains("//kotlin/internal:default_toolchain") + +# TODO(bencodes) We should be able to remove this once rules_android has rolled out official Bzlmod support +remote_android_extensions = use_extension("@bazel_tools//tools/android:android_extensions.bzl", "remote_android_tools_extensions") +use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools") + +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") diff --git a/modules/rules_kotlin/1.9.6/patches/module_dot_bazel_version.patch b/modules/rules_kotlin/1.9.6/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..7e64626b5d4 --- /dev/null +++ b/modules/rules_kotlin/1.9.6/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_kotlin", +- version = "1.9.0", ++ version = "1.9.6", + compatibility_level = 1, + repo_name = "rules_kotlin", + ) + diff --git a/modules/rules_kotlin/1.9.6/presubmit.yml b/modules/rules_kotlin/1.9.6/presubmit.yml new file mode 100644 index 00000000000..84e5a8b0f29 --- /dev/null +++ b/modules/rules_kotlin/1.9.6/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x", "rolling"] +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--enable_bzlmod=true" + build_targets: + - "@rules_kotlin//kotlin/..." + - "@rules_kotlin//src/..." diff --git a/modules/rules_kotlin/1.9.6/source.json b/modules/rules_kotlin/1.9.6/source.json new file mode 100644 index 00000000000..c87b1719f1a --- /dev/null +++ b/modules/rules_kotlin/1.9.6/source.json @@ -0,0 +1,8 @@ +{ + "integrity": "sha256-O3cpdv7Hvc2h2EudObF2WJQkwEfrIXW+0JqsYw5Qr0M=", + "url": "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.6/rules_kotlin-v1.9.6.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-DzcJ53CqDqD+AiboAl8Tq2/fKJRXn0g5O2g4UQfLrbE=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_kotlin/metadata.json b/modules/rules_kotlin/metadata.json index e83d80b57e0..bbbee49ac9d 100644 --- a/modules/rules_kotlin/metadata.json +++ b/modules/rules_kotlin/metadata.json @@ -24,7 +24,8 @@ "1.9.0", "1.9.1", "1.9.4", - "1.9.5" + "1.9.5", + "1.9.6" ], "yanked_versions": {} }