From 9c6803aa5d3e05f6ab2bb1c87a0253aad656c66c Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 22:24:06 +0100 Subject: [PATCH] rules_kotlin@2.1.0 (#3505) Release: https://github.com/bazelbuild/rules_kotlin/releases/tag/v2.1.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Co-authored-by: Ben Lee Co-authored-by: Fabian Meumertzheim --- modules/rules_kotlin/2.1.0/MODULE.bazel | 35 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_kotlin/2.1.0/presubmit.yml | 14 ++++++++ modules/rules_kotlin/2.1.0/source.json | 8 +++++ modules/rules_kotlin/metadata.json | 3 +- 5 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 modules/rules_kotlin/2.1.0/MODULE.bazel create mode 100644 modules/rules_kotlin/2.1.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_kotlin/2.1.0/presubmit.yml create mode 100644 modules/rules_kotlin/2.1.0/source.json diff --git a/modules/rules_kotlin/2.1.0/MODULE.bazel b/modules/rules_kotlin/2.1.0/MODULE.bazel new file mode 100644 index 00000000000..19f584c866a --- /dev/null +++ b/modules/rules_kotlin/2.1.0/MODULE.bazel @@ -0,0 +1,35 @@ +module( + name = "rules_kotlin", + version = "2.1.0", + compatibility_level = 1, + repo_name = "rules_kotlin", +) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "bazel_skylib", version = "1.7.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") +bazel_dep(name = "rules_android", version = "0.1.1") + +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", + "kotlinx_serialization_core_jvm", + "kotlinx_serialization_json", + "kotlinx_serialization_json_jvm", +) + +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/2.1.0/patches/module_dot_bazel_version.patch b/modules/rules_kotlin/2.1.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..b093fa59b4e --- /dev/null +++ b/modules/rules_kotlin/2.1.0/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 = "2.1.0", + compatibility_level = 1, + repo_name = "rules_kotlin", + ) + diff --git a/modules/rules_kotlin/2.1.0/presubmit.yml b/modules/rules_kotlin/2.1.0/presubmit.yml new file mode 100644 index 00000000000..d8c12bf433b --- /dev/null +++ b/modules/rules_kotlin/2.1.0/presubmit.yml @@ -0,0 +1,14 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x", "8.x", "rolling"] +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--enable_bzlmod=true" + - "--incompatible_disallow_empty_glob=false" + build_targets: + - "@rules_kotlin//kotlin/..." + - "@rules_kotlin//src/..." diff --git a/modules/rules_kotlin/2.1.0/source.json b/modules/rules_kotlin/2.1.0/source.json new file mode 100644 index 00000000000..93c03c6aace --- /dev/null +++ b/modules/rules_kotlin/2.1.0/source.json @@ -0,0 +1,8 @@ +{ + "integrity": "sha256-3TLxnnPHDzLMuaFmxhXAykrtjifnLEpjMMNSPq+hqlU=", + "url": "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.0/rules_kotlin-v2.1.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-KnFScQdZ052GYy7PJ+P2S5LaoCBkNoEgkLa3E/CmkAM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_kotlin/metadata.json b/modules/rules_kotlin/metadata.json index 67b7ed389c2..436aacb6529 100644 --- a/modules/rules_kotlin/metadata.json +++ b/modules/rules_kotlin/metadata.json @@ -26,7 +26,8 @@ "1.9.4", "1.9.5", "1.9.6", - "2.0.0" + "2.0.0", + "2.1.0" ], "yanked_versions": {} }