Skip to content

Releases: bazelbuild/rules_kotlin

v2.1.8

24 Jun 03:43
55f8585
Compare
Choose a tag to compare

Release notes for v2.1.8

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
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 below

What's Changed

Full Changelog: v2.1.7...v2.1.8

v2.1.7

15 Jun 19:56
cb8b7be
Compare
Choose a tag to compare

Release notes for v2.1.7

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
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 below

What's Changed

Full Changelog: v2.1.6...v2.1.7

v2.1.6

09 Jun 19:04
9734aa6
Compare
Choose a tag to compare

Release notes for v2.1.6

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

New Contributors

Full Changelog: v2.1.4...v2.1.6

v2.1.4

28 Apr 18:19
f446484
Compare
Choose a tag to compare

Release notes for v2.1.4

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_kotlin", version = "2.1.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 = "ac1a9a2616775e6929d76c472eabcd93c96b10edced4c45c7e6c4a466edd7dac",
    url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.4/rules_kotlin-v2.1.4.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

New Contributors

Full Changelog: v2.1.3...v2.1.4

v2.1.3

15 Mar 13:16
681b218
Compare
Choose a tag to compare

Release notes for v2.1.3

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

28 Feb 17:29
f6de627
Compare
Choose a tag to compare

Release notes for v2.1.2

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

  • Don't glob for .bazel files in the release archive by @Bencodes in #1279

Full Changelog: v2.1.1...v2.1.2

v2.1.1

27 Feb 05:39
7c57e0c
Compare
Choose a tag to compare
v2.1.1 Pre-release
Pre-release

Release notes for v2.1.1

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

30 Dec 16:57
fcf8055
Compare
Choose a tag to compare

Release notes for v2.1.0

Adds support for Kotlin 2.1.0 and above.

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

13 Sep 20:03
40fecf5
Compare
Choose a tag to compare
v2.0.0 Pre-release
Pre-release

Release notes for v2.0.0

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

New Contributors

Full Changelog: v1.9.6...v2.0.0

v1.9.6

30 Jun 23:54
fe0d460
Compare
Choose a tag to compare

Release notes for v1.9.6

Using Bzlmod with Bazel 7

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

New Contributors

Full Changelog: v1.9.5...v1.9.6