Skip to content

v2.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Nov 21:22
89fd270

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

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
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 below

What's Changed

  • Update resource_strip_prefix logic 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