Release notes for v2.2.0
Add support for Kotlin 2.2+
Note: This release is not backwards compatible with Kotlin releases pre-dating 2.2.
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.2.0")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 = "e124d13986085bc0a15be2c85c1415bab5708442b78d249fe22bf8df43a5340d",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.2.0/rules_kotlin-v2.2.0.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
- Update
resource_strip_prefixlogic to support path handling across modules by @agluszak in #1389 - Remove leftover debug logging from resource_strip_prefix_test.bzl by @agluszak in #1399
- Add support for Kotlin 2.2+ by @agluszak in #1387
Full Changelog: v2.1.10...v2.2.0