Releases: bazelbuild/rules_kotlin
v2.1.3
Release notes for v2.1.3
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.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 = "e1448a56b2462407b2688dea86df5c375b36a0991bd478c2ddd94c97168125e2",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.3/rules_kotlin-v2.1.3.tar.gz",
)
What's Changed
- Allow empty glob in src/main/starlark/BUILD.release.bazel for Bazel 8 compatibility by @ahumesky in #1283
Full Changelog: v2.1.2...v2.1.3
v2.1.2
Release notes for v2.1.2
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.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 = "6ea1c530261756546d0225a0b6e580eaf2f49084e28679a6c17f8ad1ccecca5d",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.2/rules_kotlin-v2.1.2.tar.gz",
)
What's Changed
Full Changelog: v2.1.1...v2.1.2
v2.1.1
Release notes for v2.1.1
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.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 = "425bca48bcb4be7fcae6079c68a1589dd94e55955bed71ef07d1ab1b13cae550",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.1/rules_kotlin-v2.1.1.tar.gz",
)
What's Changed
- Add 8.x to presubmit CI by @Bencodes in #1256
- Add .bazelbsp to the gitignore file by @Bencodes in #1258
- Clean up _get_associates creation by @Bencodes in #1259
- Require a mnemonic when calling _run_kt_builder_action by @Bencodes in #1261
- Add support for experimental treatInternalAsPrivate by @rbeazleyspot in #1248
- Improve maintenance of the capabilities. by @restingbull in #1252
- Update platforms to 0.0.11 by @Bencodes in #1263
- Pull java_stub_template.txt as an http_file by @Bencodes in #1270
- Pass module_name from kt_android_library to kt_jvm_library by @sukolsak in #1277
- Fixes for Windows issues found in the course of updating rules_jvm_external to use Starlark Android rules by @ahumesky in #1274
- Add support for strict associate deps by @Bencodes in #1260
New Contributors
- @rbeazleyspot made their first contribution in #1248
- @sukolsak made their first contribution in #1277
- @ahumesky made their first contribution in #1274
Full Changelog: v2.1.0...v2.1.1
v2.1.0
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
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