Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Fabian Meumertzheim <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2024
1 parent 33f42cc commit 9c6803a
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
35 changes: 35 additions & 0 deletions modules/rules_kotlin/2.1.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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")
12 changes: 12 additions & 0 deletions modules/rules_kotlin/2.1.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -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",
)

14 changes: 14 additions & 0 deletions modules/rules_kotlin/2.1.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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/..."
8 changes: 8 additions & 0 deletions modules/rules_kotlin/2.1.0/source.json
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 2 additions & 1 deletion modules/rules_kotlin/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"1.9.4",
"1.9.5",
"1.9.6",
"2.0.0"
"2.0.0",
"2.1.0"
],
"yanked_versions": {}
}

0 comments on commit 9c6803a

Please sign in to comment.