v1.9.0
This release of rules_kotlin comes with some breaking changes:
- The
build_bazel_rules_android
repository namespace has been renamed torules_android
. Please update your WORKSPACE files to avoid downloading these rules multiple times! #1047 - In order to support Bzlmod, the Kotlin and KSP targets have been moved out of the
io_bazel_rules_kotlin
repository and intorules_kotlin
. If you are referencing any targets under@com_github_jetbrains_kotlin//...
in your build files you will need to replace them with@rules_kotlin//kotlin/compiler:...
. #1014
Using Bzlmod with Bazel 6+
Note: Bzlmod support inside of rules_kotlin
is still very much considered experimental. Please report any issues that you run into!
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "1.9.0")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_kotlin",
sha256 = "5766f1e599acf551aa56f49dab9ab9108269b03c557496c54acaf41f98e2b8d6",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.0/rules_kotlin-v1.9.0.tar.gz",
)
What's Changed
- Move the KSP and compiler target definitions into rules_kotlin by @Bencodes in #1014
- Add support for Bzlmod by @Bencodes in #1006
- Enables compiling against direct dependencies only - kotlin by @nkoroste in #842
- Add support for -Xno-source-debug-extension by @Bencodes in #1025
- Include Bzlmod files into release binary by @Bencodes in #1026
- Enable Bzlmod for examples/android by @Bencodes in #1031
- Update and align rules_python versions on 0.23.1 by @Bencodes in #1029
- Update buildifier to 6.3.3 by @Bencodes in #1027
- Update MODULE.bazel rules_jvm_external to 5.3 by @Bencodes in #1028
- Enable Bzlmod for examples/multiplex by @Bencodes in #1030
- Load JavaInfo and java_common from rules_java by @comius in #1037
- Fix the nouse_workers_with_dexbuilder error by @sgowroji in #1040
- Rename build_bazel_rules_android to rules_android by @Bencodes in #1047
- Remove copy/pasted BUILD files that call kt_configure_toolchains by @Bencodes in #1053
- Add BUILD.release.bazel file for src/main/starlark/core/repositories/kotlin/ by @Bencodes in #1052
- Update bazel_skylib 1.3.0 -> 1.4.1 by @Bencodes in #1049
- Fix Android support when running the entire test suite by @Bencodes in #1051
- [bazel-bsp-aspect] extract more generated jars by @xuansontrinh in #1046
- Add Android Platforms build flags. by @katre in #1054
- Add support for Kotlin 1.9 by @agluszak in #996
- Add BCR configurations for publishing releases to the central registry by @Bencodes in #1038
New Contributors
- @sgowroji made their first contribution in #1040
- @xuansontrinh made their first contribution in #1046
- @katre made their first contribution in #1054
- @agluszak made their first contribution in #996
Full Changelog: v1.8.1...v1.9.0