v2.1.6
Release notes for v2.1.6
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.6")
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 = "1b6febb7081f6b46070c41f601f567bff4c80c05494fd191076515a10c19aec9",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.6/rules_kotlin-v2.1.6.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
- Add x_suppress_warning to kotlinc options by @cheister in #1306
- Fix FileAlreadyExistsException when running coverage with RBE by @laureanobrs in #1307
- Remove duplicate and unused WorkingDirectoryContext by @erikkerber in #1308
- [exports] Propagate runfiles as part of exported resources by @restingbull in #1310
- Use
export_files
to export the KSP JAR files by @kpitt in #1313 - Fix associates compile classpath by @rbeazleyspot in #1271
- Add x_annotation_default_target kotlinc option by @erikkerber in #1314
- Add support for Kotlin 2.1.20 by @Bencodes in #1298
- Update KtLint to 1.5.0 by @Bencodes in #1281
- Rework local development docs by @Bencodes in #1321
- Update rules_android to 0.6.4 by @Bencodes in #1317
- Add missing java and shell load statements by @Bencodes in #1318
- Update KtLint to 1.6.0 by @Bencodes in #1319
- Bump Bazel versions to their latest minor releases by @Bencodes in #1315
- Add missing load statements in setup.bzl by @Bencodes in #1322
- Apply equivalent of changes from #1274 to release build file by @ahumesky in #1324
- Updating plexus-utils to patch CVE-2022-4244 by @aaronmaxlevy in #1327
- Update JC plugin to support AS Layout Inspector by @zalewskise in #1297
- Upgrade Kotlin to 2.1.21, KSP to 2.1.21-2.0.1 by @Bencodes in #1323
- Add experimental Build Tools API (BTAPI) for compilation by @erikkerber in #1325
New Contributors
- @laureanobrs made their first contribution in #1307
- @kpitt made their first contribution in #1313
- @aaronmaxlevy made their first contribution in #1327
Full Changelog: v2.1.4...v2.1.6