v2.2.1
Release notes for v2.2.1
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.2.1")Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_kotlin",
sha256 = "50c9b7294b73a1f50fcb3b349ca0edfd852ee1016e284b9d569ef0bffe0eb105",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.2.1/rules_kotlin-v2.2.1.tar.gz",
)
load("@rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
kotlin_repositories() # if you want the default. Otherwise see custom kotlinc distribution below
load("@rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
kt_register_toolchains() # to use the default toolchain, otherwise see toolchains belowWhat's Changed
- Include all abi jars from the associates array by @fredm-spotify in #1409
- Remove dependency on @bazel_tools (required for Bazel 9) by @LeFrosch in #1412
- Bump version of protoc to
4.33.1for backward compatibility with code generated with java protoc v3 by @nico-semko in #1413 - Update rules_android to fix --incompatible_disable_native_repo_rules failure by @restingbull in #1358
New Contributors
- @fredm-spotify made their first contribution in #1409
- @LeFrosch made their first contribution in #1412
- @nico-semko made their first contribution in #1413
Full Changelog: v2.2.0...v2.2.1