Releases: bazel-contrib/rules_kotlin
v2.3.20
Release notes for v2.3.20
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.3.20")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 = "13d5b767d697473ced9b55547a18a6ab65ab3fae5440555deee8a44c886b50aa",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.3.20/rules_kotlin-v2.3.20.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 belowWhat's Changed
- [maintenance] Remove old capability files by @agluszak in #1475
- Drop support for Java 8, stop using kotlin-preloader by @agluszak in #1474
- [maintenance] Remove unused development setup for WORKSPACE by @agluszak in #1477
- [maintenance] Update buildifier by @agluszak in #1486
- Add repository entry for bazel-contrib rules_kotlin by @meteorcloudy in #1482
- chore(deps): update dependency bazel to v9.0.1 by @renovate[bot] in #1483
- feat: allow passing KSP options via kt_ksp_plugin by @monosoul in #1478
- Remove WorkerEnvironmentTest by @Bencodes in #1496
- Update Kotlin to 2.3.20 by @agluszak in #1515
- chore(deps): update actions/checkout action to v6 by @renovate[bot] in #1514
- chore(deps): update actions/cache action to v5 - autoclosed by @renovate[bot] in #1513
- chore(deps): update actions/setup-java action to v5 by @renovate[bot] in #1516
New Contributors
- @renovate[bot] made their first contribution in #1483
- @monosoul made their first contribution in #1478
Full Changelog: v2.3.10...v2.3.20
v2.3.10
Release notes for v2.3.10
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.3.10")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 = "c8fda2b1518018f26d7ca914cd9adb0e9f1799d0db7c4b510de67ed500060dae",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.3.10/rules_kotlin-v2.3.10.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 belowWhat's Changed
- Fix transitive dependency propagation for sourceless targets by @olbapmar in #1455
- Add support for newer JDK versions by @Bencodes in #1361
- fix: Conditionally set repo rules as reproducible by @mortenmj in #1456
- Update Kotlin to 2.3.10 by @Bencodes in #1453
- Upgrade KSP to 2.3.6 by @Bencodes in #1463
- [maintenance] Remove unused bazel_deps from MODULE.release.bazel by @agluszak in #1457
- [maintenance] Remove dead code by @agluszak in #1472
- Fix resource strip prefix by @Bencodes in #1476
- Fix stale bot configuration by @Bencodes in #1473
New Contributors
Full Changelog: v2.3.0...v2.3.10
v2.3.0
Release notes for v2.3.0
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.3.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 = "6d008622fc15bc56f9eba3eebef28af63abf0d07b97cb3971401e7a6d7c15227",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.3.0/rules_kotlin-v2.3.0.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 belowWhat's Changed
- Update Kotlin to 2.3.0 by @agluszak in #1410
- Drop KSP 2.0 success message from the build by @Bencodes in #1428
- Fix analysis tests for experimental_prune_transitive_deps by @agluszak in #1418
- [maintenance] Remove unused release_archive folder by @agluszak in #1433
- [maintenance] Remove cruft by @agluszak in #1436
- [maintenance] Move all docs-related targets to the docs folder by @agluszak in #1435
- [maintenance] Update rules_android by @agluszak in #1443
- [maintenance] Add Kotlin 2.3 compiler options definitions by @agluszak in #1445
- maintenance: Remove dagger from the builder by @agluszak in #1423
- chore(docs): remove badly outdated Bazel compatibility by @alexeagle in #1451
- ktlint_test: use java runtime_toolchain_type for bazel 9 compatibility by @dmivankov in #1452
- [maintenance] Windows CI by @agluszak in #1439
- Fix JaCoCo coverage issue with rules_java 9.3.0+ by @agluszak in #1448
- Run coverage in integration tests and drop coverage example by @agluszak in #1454
- [maintenance] Bazel 9 & integration test maintenance by @agluszak in #1446
- [maintenance] Remove unused rules_stardoc repository rule by @agluszak in #1458
- Add configuration for stale bot by @agluszak in #1460
- Don't set XDG_CACHE_HOME in release.yml by @Bencodes in #1461
- Rename CI Bazel cache to bazel-disk-cache by @Bencodes in #1462
Full Changelog: v2.2.2...v2.3.0
v2.2.2
Release notes for v2.2.2
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.2.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 = "411db26afb3492cc8351b5b5349931522afe2c54f2651b6d127730a1256d0f60",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.2.2/rules_kotlin-v2.2.2.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 belowWhat's Changed
- Fix Windows bzlmod builder classpath issue by @agluszak in #1411
- Migrate from KSP1 (compiler plugin) to KSP2 (standalone tool) by @agluszak in #1405
- Fix post-merge error by @agluszak in #1420
- Document x_lambdas and x_sam_conversions defaults by @johnnymo87 in #1419
- .bazelrc: do not add IntelliJ-internal packages to --deleted_pacakges by @aehlig in #1422
- maintenance: Enable Build Tools API by default by @agluszak in #1426
- Move to the official bazel worker api (with workspace support) by @agluszak in #1400
- chore: Add a target to update docs automatically by @agluszak in #1421
New Contributors
- @johnnymo87 made their first contribution in #1419
- @aehlig made their first contribution in #1422
Full Changelog: v2.2.1...v2.2.2
v2.2.1
Release notes for v2.2.1
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.2.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 = "50c9b7294b73a1f50fcb3b349ca0edfd852ee1016e284b9d569ef0bffe0eb105",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.2.1/rules_kotlin-v2.2.1.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 belowWhat's Changed
- Include all abi jars from the associates array by @fredm-spotify in #1409
- Remove dependency on @bazel_tools (required for Bazel 9) by @LeFrosch in #1412
- Bump version of protoc to
4.33.1for backward compatibility with code generated with java protoc v3 by @nico-semko in #1413 - Update rules_android to fix --incompatible_disable_native_repo_rules failure by @restingbull in #1358
New Contributors
- @fredm-spotify made their first contribution in #1409
- @LeFrosch made their first contribution in #1412
- @nico-semko made their first contribution in #1413
Full Changelog: v2.2.0...v2.2.1
v2.2.0
Release notes for v2.2.0
Add support for Kotlin 2.2+
Note: This release is not backwards compatible with Kotlin releases pre-dating 2.2.
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.2.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 = "e124d13986085bc0a15be2c85c1415bab5708442b78d249fe22bf8df43a5340d",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.2.0/rules_kotlin-v2.2.0.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 belowWhat's Changed
- Update
resource_strip_prefixlogic to support path handling across modules by @agluszak in #1389 - Remove leftover debug logging from resource_strip_prefix_test.bzl by @agluszak in #1399
- Add support for Kotlin 2.2+ by @agluszak in #1387
Full Changelog: v2.1.10...v2.2.0
v2.1.10
Release notes for v2.1.10
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.1.10")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 = "afa951024e022f7ec565295fcf4cb74738ef7b2ff968820f1465488c06ecf0a0",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.10/rules_kotlin-v2.1.10.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 belowWhat's Changed
- Add support for experimental
removeDebugInfoflag by @ThomasCJY in #1342 - Add support for env_inherit by @gibfahn in #942
- Fix non-file inclusion into runfiles for data. by @restingbull in #1349
- Shard integration tests by @restingbull in #1350
- Fix doc in kotlin jvm.bzl by @ThomasCJY in #1355
- Allow multiple kt_plugin_cfg by @restingbull in #1353
- Generate KSP classes jar as output by @smocherla-brex in #1329
- [kapt] allow options to be passed to kapt and javac annotation processing. by @restingbull in #1354
- Stop enabling Java Security Manager before Java 24 by @Bencodes in #1360
- Add data attr to kt_plugin_cfg and kt_compiler_plugin by @rbeazleyspot in #1364
- Allow setting newer language versions in toolchain by @gottagofaster236 in #1367
- Mark released extension as reproducible by @fmeum in #1366
- Restore user dependency precedence over stdlib in classpath by @agluszak in #1369
- ktlint_fix: /bin/bash -> /usr/bin/env bash by @dmivankov in #1371
- ktlint_fix: use
javafrom toolchain rather than from default PATH by @dmivankov in #1375 - Add support for Experimental x_context_parameters by @kevomacartney in #1376
- Update rules_bazel_integration_test by @agluszak in #1383
- kt_jvm_binary: resolve JVM via runfiles path (fixes #1332) by @agluszak in #1380
- Add env and env_inherit support to kt_jvm_binary by @agluszak in #1379
- Windows portability fixes by @FaBrand in #1386
- Bump bazel version to 8.4.2 by @agluszak in #1382
- Update Java runtime version to remotejdk_17 in .bazelrc by @agluszak in #1390
- Add support for x_warning_level by @Bencodes in #1391
- Migrate jetpack_compose example to bzlmod and update it by @agluszak in #1393
New Contributors
- @gibfahn made their first contribution in #942
- @smocherla-brex made their first contribution in #1329
- @gottagofaster236 made their first contribution in #1367
- @dmivankov made their first contribution in #1371
- @kevomacartney made their first contribution in #1376
- @FaBrand made their first contribution in #1386
Full Changelog: v2.1.8...v2.1.10
v2.1.9
Release notes for v2.1.9
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.1.9")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 = "21b2b350f4856000bd7e3eb55befe37219b237fb37cc3ba272588c7eee4b4cea",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.9/rules_kotlin-v2.1.9.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 belowWhat's Changed
- Add support for experimental
removeDebugInfoflag by @ThomasCJY in #1342 - Add support for env_inherit by @gibfahn in #942
- Fix non-file inclusion into runfiles for data. by @restingbull in #1349
- Shard integration tests by @restingbull in #1350
- Fix doc in kotlin jvm.bzl by @ThomasCJY in #1355
- Allow multiple kt_plugin_cfg by @restingbull in #1353
- Generate KSP classes jar as output by @smocherla-brex in #1329
New Contributors
- @gibfahn made their first contribution in #942
- @smocherla-brex made their first contribution in #1329
Full Changelog: v2.1.8...v2.1.9
v2.1.8
Release notes for v2.1.8
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.1.8")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 = "e6ca53740703a709a017bf4441f260007a6075741af65da1b79bc31ada9a570a",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.8/rules_kotlin-v2.1.8.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 belowWhat's Changed
- Support Starlark rules_android by @Bencodes in #1333
- Fix typo in kt_android_library_impl by @Bencodes in #1336
- Ensure that associates are being included in the source dep_infos list by @Bencodes in #1337
- Use the jacoco_coverage_runner provided by remote_java_tools by @Bencodes in #1339
- Fix Android test coverage support by @Bencodes in #1338
Full Changelog: v2.1.7...v2.1.8
v2.1.7
Release notes for v2.1.7
Using Bzlmod with Bazel 7
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_kotlin", version = "2.1.7")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 = "70305281f3714e053dca28f5dd42b2d8c683284e9a09af7e2c39b7bd40cc2eeb",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.7/rules_kotlin-v2.1.7.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 belowWhat's Changed
- Fix #1330 : Include associates transitive compile jars in classpath by @rbeazleyspot in #1331
Full Changelog: v2.1.6...v2.1.7