Release notes for v2.1.0
Adds support for Kotlin 2.1.0 and above.
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "2.1.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 = "dd32f19e73c70f32ccb9a166c615c0ca4aed8e27e72c4a6330c3523eafa1aa55",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.0/rules_kotlin-v2.1.0.tar.gz",
)
What's Changed
- Pass generated_source_jar to the final JavaInfo by @Bencodes in #1223
- [infra] Use kotlin standard libraries from the toolchain, as opposed to hard coded. by @restingbull in #1225
- Add rules_jvm_external overrides for stdlib by @Bencodes in #1219
- Stop suggesting that Java's
exported_plugins
is transitive. by @cpovirk in #1236 - Add a current_toolchain target to be referenced by kt_toolchain attribute by @jdai8 in #1239
- Fix workspace resolution for development by @restingbull in #1231
- fix running kotlin targets by @Bencodes in #1242
- Add support for -Xconsistent-data-class-copy-visibility by @Bencodes in #1247
- Create a new "bootstrap" toolchain and compile with 2.1.0 by @restingbull in #1244
- Fix typo in src/main/starlark/core/compile/BUILD.release.bazel by @Bencodes in #1253
- Query the release target in the integration tests by @Bencodes in #1254
New Contributors
Full Changelog: v2.0.0...v2.1.0