Releases: bazelbuild/rules_kotlin
v2.0.0
Release notes for v2.0.0
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.0.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 = "d89723cc9ebbb7bdb2ebaca1af7d2383e074615643cf97a366b758a76b7dc443",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.0.0/rules_kotlin-v2.0.0.tar.gz",
)
What's Changed
- Update Skylib to 1.7.1 by @Bencodes in #1187
- Update platforms to 0.0.10 by @Bencodes in #1189
- Fix stardoc breakage in bazel @ HEAD by @restingbull in #1190
- Revert "Update README.md" by @Bencodes in #1192
- Update Skylib to 1.7.1 by @Bencodes in #1188
- Add docs for cutting new rules releases by @Bencodes in #1191
- Update Bazel to 7.2.1 by @Bencodes in #1186
- Drop support for JavaScript by @Bencodes in #1185
- Import rules_android in MODULE.bazel by @Bencodes in #1195
- Support testing with coverage in dev mode by @Bencodes in #1199
- [ksp] Rename files during extraction by @restingbull in #1201
- Upgrade Bazel to
7.3.0
by @albertocavalcante in #1207 - Implement Jdeps using K2 APIs by @jbarr21 in #1166
- Add support for -Xjvm-release by @Bencodes in #1200
- Update KtLint to 1.3.1 by @Bencodes in #1210
- [toolchains] Add native.toolchain arguments to define_kt_toolchain by @restingbull in #1213
- [infra] Convert examples to bazel integration tests by @restingbull in #1183
- [stardoc] Update stardoc to 0.7.0 by @restingbull in #1214
- Add support for Kotlin 2.0.10 by @Bencodes in #1216
- Update released_rules_kotlin to 1.9.6 by @Bencodes in #1215
New Contributors
- @albertocavalcante made their first contribution in #1207
Full Changelog: v1.9.6...v2.0.0
v1.9.6
Release notes for v1.9.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 = "1.9.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 = "3b772976fec7bdcda1d84b9d39b176589424c047eb2175bed09aac630e50af43",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.6/rules_kotlin-v1.9.6.tar.gz",
)
What's Changed
- Remove legacy struct providers by @comius in #1157
- Pass through kotlinc options to JS compile by @pswaminathan in #1017
- Prepare Jdeps extension for K2 implementation by @jbarr21 in #1164
- Bump express from 4.17.3 to 4.19.2 in /examples/node by @dependabot in #1150
- Update Bazel to 7.1.1 by @Bencodes in #1160
- Update buildifier to 7.1.1 by @Bencodes in #1161
- Update Kotlin to 1.9.23 and KSP to 1.9.23-1.0.20 by @Bencodes in #1162
- Update release_prep.sh to reference the correct Bazel version by @Bencodes in #1153
- Update release_prep.sh by @Bencodes in #1152
- Add support for generated Java code with KSP by @zalewskise in #1139
- Shade Guava to avoid conflicts with ksp plugins by @erikkerber in #1167
- Various kotlinc options added to opts.kotlinc.bzl by @erikkerber in #1170
- Mark kotlin extension as reproducible by @fmeum in #1173
- Update bazel_skylib to 1.6.1 in release module by @Bencodes in #1174
- Update presubmit.yml by @Bencodes in #1177
- Restrict unecessary inputs to 'JdepsMerge' actions by @oliviernotteghem in #1175
- Make loading the kotlinc repository lazy by @restingbull in #1126
- Fix js test and format capabilities by @restingbull in #1178
- Update KtLint to 1.3.0 by @Bencodes in #1184
New Contributors
- @jbarr21 made their first contribution in #1164
- @erikkerber made their first contribution in #1167
Full Changelog: v1.9.5...v1.9.6
v1.9.5
Release notes for v1.9.5
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "1.9.5")
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 = "34e8c0351764b71d78f76c8746e98063979ce08dcf1a91666f3f3bc2949a533d",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.5/rules_kotlin-v1.9.5.tar.gz",
)
What's Changed
- [README.md] Update Bazel Compatibility Matrix by @kolloch in #1143
- Add missing compatibility_level back by @Bencodes in #1155
New Contributors
Full Changelog: v1.9.4...v1.9.5
v1.9.4
Release notes for v1.9.4
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "1.9.4")
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 = "76c0fcc2c23edf736320aded1acd9dde0bae418e5731df12933d886cba86b795",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.4/rules_kotlin-v1.9.4.tar.gz",
)
What's Changed
- [Bcr] Add Bazel versions to BCR presubmit by @Bencodes in #1121
- Support user.bazelrc by @Bencodes in #1119
- Add support for -Xcontext-receivers by @Bencodes in #1117
- Refactor KotlinBuilderJvmJdepsTest to do exact dep assertions by @Bencodes in #1116
- Revert android.bzl changes introduced by #842 by @Bencodes in #1122
- Build rules_kotlin using rules_kotlin by @restingbull in #1081
- Improve jdeps logic to find more explicit and implicit dependencies by @scosenza in #1118
- Add user.bazelrc to .gitignore by @Bencodes in #1123
- [kt_compiler_plugin] Add kt_plugin_cfg for reusable and composable options by @restingbull in #1105
- [bzlmod] Stop relying on initialize.release.bzl by @restingbull in #1127
- Revert "[kt_compiler_plugin] Add kt_plugin_cfg for reusable and composable options" by @Bencodes in #1131
- [testing] Switch to junit5 by @restingbull in #1128
- Update Bazel to 7.1.0 by @Bencodes in #1136
- Use maven lock-file by @scaiper in #1134
- Remove leading . from package inference by @restingbull in #1142
- Pass -Djava.security.manager=allow in kt_rules_test by @Bencodes in #1132
- [testing] Revert to JUnit4. by @restingbull in #1145
- Remove unnecessary use of
ctx.resolve_tools
. by @tjgq in #1147 - Reapply "[kt_compiler_plugin] Add kt_plugin_cfg for reusable and comp… …osable op…" (#1131) by @restingbull in #1135
- Support -Xsuppress-version-warnings by @Bencodes in #1146
- Remove unused repo by @restingbull in #1151
New Contributors
Full Changelog: v1.9.1...v1.9.4
v1.9.3
Release notes for v1.9.3
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "1.9.3")
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 = "b3eac09c6385e3a79f3c260314c4bfb82c288d3947869b2406b11bf1ef450cc2",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.3/rules_kotlin-v1.9.3.tar.gz",
)
What's Changed
- [Bcr] Add Bazel versions to BCR presubmit by @Bencodes in #1121
- Support user.bazelrc by @Bencodes in #1119
- Add support for -Xcontext-receivers by @Bencodes in #1117
- Refactor KotlinBuilderJvmJdepsTest to do exact dep assertions by @Bencodes in #1116
- Revert android.bzl changes introduced by #842 by @Bencodes in #1122
- Build rules_kotlin using rules_kotlin by @restingbull in #1081
- Improve jdeps logic to find more explicit and implicit dependencies by @scosenza in #1118
- Add user.bazelrc to .gitignore by @Bencodes in #1123
- [kt_compiler_plugin] Add kt_plugin_cfg for reusable and composable options by @restingbull in #1105
- [bzlmod] Stop relying on initialize.release.bzl by @restingbull in #1127
- Revert "[kt_compiler_plugin] Add kt_plugin_cfg for reusable and composable options" by @Bencodes in #1131
- [testing] Switch to junit5 by @restingbull in #1128
- Update Bazel to 7.1.0 by @Bencodes in #1136
- Use maven lock-file by @scaiper in #1134
- Remove leading . from package inference by @restingbull in #1142
- Pass -Djava.security.manager=allow in kt_rules_test by @Bencodes in #1132
- [testing] Revert to JUnit4. by @restingbull in #1145
- Remove unnecessary use of
ctx.resolve_tools
. by @tjgq in #1147 - Reapply "[kt_compiler_plugin] Add kt_plugin_cfg for reusable and comp… …osable op…" (#1131) by @restingbull in #1135
- Support -Xsuppress-version-warnings by @Bencodes in #1146
New Contributors
Full Changelog: v1.9.1...v1.9.3
v1.9.2
Release notes for v1.9.2
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "1.9.2")
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 = "48e69a22c7098a2bb36bcab3bec3355a0ea1190a285c64216cf4eba3c08bba89",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.2/rules_kotlin-v1.9.2.tar.gz",
)
What's Changed
- [Bcr] Add Bazel versions to BCR presubmit by @Bencodes in #1121
- Support user.bazelrc by @Bencodes in #1119
- Add support for -Xcontext-receivers by @Bencodes in #1117
- Refactor KotlinBuilderJvmJdepsTest to do exact dep assertions by @Bencodes in #1116
- Revert android.bzl changes introduced by #842 by @Bencodes in #1122
- Build rules_kotlin using rules_kotlin by @restingbull in #1081
- Improve jdeps logic to find more explicit and implicit dependencies by @scosenza in #1118
- Add user.bazelrc to .gitignore by @Bencodes in #1123
Full Changelog: v1.9.1...v1.9.2
v1.9.1
Release notes for v1.9.1
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_kotlin", version = "1.9.1")
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 = "d9898c3250e0442436eeabde4e194c30d6c76a4a97f517b18cefdfd4e345725a",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.1/rules_kotlin-v1.9.1.tar.gz",
)
What's Changed
- Fix release notes generation by @Bencodes in #1057
- Fix missing jdeps by consistently calling
collectTypeReferences
by @scosenza in #1045 - Update Kotlin to 1.9.20 by @Bencodes in #1067
- Update release_prep.sh to have correct WORKSPACE download URL by @Bencodes in #1066
- Add javac_option to pass release flag to javac by @cheister in #1064
- Include more tests in the root test suite by @Bencodes in #1050
- Update release_prep.sh by @Bencodes in #1070
- [options] Add exports and fix readme by @restingbull in #1068
- Add add-opens for JDK 21 java.lang.IllegalAccessError by @cheister in #1069
- Update README.md by @AlexBeggs in #1073
- Use launcher stub template from bazel by @illicitonion in #1082
- Fix 'x_no_source_debug_extension' inverted behavior by @oliviernotteghem in #1078
- Update Bazel version to 6.4.0 by @Bencodes in #1085
- Update rules_java to 7.2.0 by @Bencodes in #1084
- Add CI jobs for 5.x and 6.x releases by @Bencodes in #1087
- Support Kotlin 2.0 target and language levels by @Bencodes in #1086
- Add missing KotlinJvmTaskExecutorTest to the test suite by @raghulvelusamy in #1089
- Build rules_kotlin using Bazel 7.0.0 by @Bencodes in #1090
- Update name of experimental_prune_transitive_deps flag. by @plobsing in #1101
- Allow setting jvm_target up to Java 21 by @josephglanville in #1099
- Add manifest files generated from ksp into final jar by @raghulvelusamy in #1094
- Add bzl_library targets to released artifacts by @stevebarrau in #1093
- Update default Kotlin language levels to 1.9 by @Bencodes in #1111
- Update Bazel to 7.0.2 by @Bencodes in #1108
- Update Kotlin to 1.9.22 by @Bencodes in #1109
- Fix README installation's string formatting code by @marcoss in #1114
New Contributors
- @scosenza made their first contribution in #1045
- @cheister made their first contribution in #1064
- @AlexBeggs made their first contribution in #1073
- @raghulvelusamy made their first contribution in #1089
- @plobsing made their first contribution in #1101
- @josephglanville made their first contribution in #1099
- @stevebarrau made their first contribution in #1093
- @marcoss made their first contribution in #1114
Full Changelog: v1.9.0...v1.9.1
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
Kotlin rules for Bazel - v1.8.1
Note: These rules are maintained externally by volunteers (with Google's approval)
SHA256: a630cda9fdb4f56cf2dc20a4bf873765c41cf00e9379e8d59cd07b24730f4fde
What's Changed
- Update README with KSP support by @Bencodes in #983
- fix readme about kotlinc_opts and javac_opts by @asinbow in #984
- update stardoc to 0.5.6 by @restingbull in #986
- Rename dev_io_bazel_rules_kotlin -> io_bazel_rules_kotlin by @Bencodes in #973
- Fail CI if the docs are outdated by @Bencodes in #961
- Bump quick guide to use v1.8 by @hanneskaeufler in #987
- Expose ksp_version by @zalewskise in #989
- Remove unnecessary Java runtime dependencies by @fmeum in #1000
- Migrate usages of deprecated
JavaInfo
fields by @hvadehra in #1005 - Update rules_jvm_external to 5.3 by @Bencodes in #1009
- Update Bazel to 6.3.2 by @Bencodes in #1007
- Add rules_java 6.4.0 by @Bencodes in #1010
- Group the all_tests jobs together in presubmit.yml by @Bencodes in #1008
- Disable strict deps for Android example by @Bencodes in #1013
- Update kt_java_stub_template to 6.2.1 by @Bencodes in #992
- Avoid running java_common#compile against KSP generated outputs by @Bencodes in #990
New Contributors
- @asinbow made their first contribution in #984
- @zalewskise made their first contribution in #989
- @hvadehra made their first contribution in #1005
Full Changelog: v1.8...v1.8.1
Kotlin rules for Bazel - v1.8
Note: These rules are maintained externally by volunteers (with Google's approval)
SHA256: 01293740a16e474669aba5b5a1fe3d368de5832442f164e4fbfc566815a8bc3a
What's Changed
- Convert strings to label with the correct repository by @comius in #896
- Add missing rules_proto calls for deps, etc. by @restingbull in #904
- Revert "Enable new jarfs for multiplex workers." by @Bencodes in #906
- Updated debug instructions by @pettermahlen in #882
- What binaries do you speak of? by @restingbull in #905
- Use rules_kotlin 1.7.1 in readme install instructions by @hanneskaeufler in #909
- Update Dagger from 2.43.2 -> 2.44.2 by @Bencodes in #911
- Update Anvil 2.4.1 -> 2.4.3 by @Bencodes in #912
- Use placeholders in progress messages by @fmeum in #895
- Update README with Bazel compatibility messaging by @Bencodes in #914
- Fix reference to java_infos in compile.bzl by @avarun42 in #915
- Support Kotlin 1.8 by @Bencodes in #910
- Update AutoValue 1.6.5 -> 1.10.1 by @Bencodes in #918
- Remove unused commonArgs function from CompilationTask.kt by @Bencodes in #921
- Add missing 1.8 language_version to toolchains.bzl by @Bencodes in #923
- Update Kotlin compiler to 1.8.10 by @Bencodes in #932
- Add -Xdebug option added in 1.8 to make debugging better by @chancila in #936
- WIP Clean up user defined flag settings by @chancila in #937
- Add
src/{main,test}/java
as conventional resource prefix by @fmeum in #927 - Get rid of duplicates in the --processors and --processorpath arguments. by @tjgq in #940
- Remove unused MAVEN_PROTO versions by @Bencodes in #949
- Update rules_kotlin to Kotlin 1.8.20 by @Bencodes in #943
- Remove unused bazel_deps repository by @Bencodes in #948
- Update KtLint to 0.48.2 by @Bencodes in #947
- Update rules_proto to 5.3.0-21.7 by @Bencodes in #946
- Update buildifier to 6.1.0 by @Bencodes in #945
- Update Bazel to 6.1.1 by @Bencodes in #944
- Remove kt_jvm_plugin_aspect now that all versions of Bazel support JavaPluginInfo by @Bencodes in #953
- Support passing data attribute to android_local_test by @Bencodes in #954
- Align the anvil workspace versions by @Bencodes in #952
- Update the Jetpack Compose compiler to 1.8.10 by @Bencodes in #951
- Update rules_python version by @comius in #958
- Switch to bazel runfiles by @restingbull in #956
- Add support for KSP annotation processing via KspCompile by @Bencodes in #955
- Update the Kotlin docs by @Bencodes in #959
- Ensure that KSP plugins are included in the action inputs by @Bencodes in #964
- Fix order of repository loads by @comius in #965
- Update android.bzl to call into the repo rules by @Bencodes in #966
- Check all dependency jars before marking unused by @mauriciogg in #967
- Move to options capabilities to kotlinc repository by @restingbull in #963
- Update to Kotlin 1.8.21 by @Bencodes in #969
- Support -Xenable-incremental-compilation by @Bencodes in #971
- Add support for -Xuse-fir-lt by @Bencodes in #972
- Update KtLint to 0.49.1 by @Bencodes in #970
- Use the mnemonic for worker keys by @Bencodes in #976
- Restore neverlink on compiler. by @restingbull in #977
- Generate koltinc options by @restingbull in #962
- Normalize label by @mauriciogg in #968
- Avoid creating duplicate android_sdk_repositories by @Bencodes in #978
- Remove print warning from kt_download_local_dev_dependencies by @Bencodes in #974
- Remove opts.release.bzl which is no longer being used by @Bencodes in #982
- Update the README.md with the latest dev override config by @Bencodes in #981
- Regenerate the docs by @Bencodes in #980
New Contributors
- @avarun42 made their first contribution in #915
- @chancila made their first contribution in #936
- @tjgq made their first contribution in #940
Full Changelog: v1.7.1...v1.8