rules_kotlin
rules_kotlin copied to clipboard
Bazel rules for Kotlin
Hi, I would like to know when you will be able to have Android extensions support, we need it to make some compilations of some android components that use it....
Blocked by: https://github.com/bazelbuild/rules_kotlin/issues/618
Consider this minimal example: WORKSPACE ```python load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_kotlin", sha256 = "6cbd4e5768bdfae1598662e40272729ec9ece8b7bded8f0d2c81c8ff96dc139d", urls = ["https://github.com/bazelbuild/rules_kotlin/releases/download/v1.5.0-beta-4/rules_kotlin_release.tgz"], ) load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories") kotlin_repositories() load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains") kt_register_toolchains() ``` BUILD.bazel ```python load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_binary")...
Hi! It seems like `archive_repository_implementation` is invoking `bazel` directly: https://github.com/bazelbuild/rules_kotlin/blob/26c811765f8ed42d4538a1963dffb9dc2d12f3b8/src/main/starlark/release_archive/repository.bzl#L80 This causes issues when running on a machine with only `bazelisk` on the PATH because `bazel` doesn't exist. Would it...
Bazel 5 will bring experimental support for a [new system for external dependency management codenamed "bzlmod"](https://docs.bazel.build/versions/main/bzlmod.html). Making rules_kotlin available within this system requires packaging it as a module and submitting...
They cause cyclical loading issues during configuration.
The `ktlint` tool supports loading and executing custom rulesets through the use of the `-R` flag. See [documentation](https://github.com/pinterest/ktlint#creating-a-ruleset). It would be helpful if the `ktlint_test` rule could provide an interface...
There are two versions of the Kotlin compiler jar: kotlin-compiler.jar: this is the vanilla version and is the one distributed in the Kotlin Github repo. kotlin-compiler-embeddable .jar: this is a...
Currently [these lines](https://github.com/bazelbuild/rules_kotlin/blob/dd14b4da927b53ebba4cec59f0522dd8f08401e3/src/main/kotlin/io/bazel/kotlin/builder/utils/BazelUtils.kt#L28-L35) will make windows builds fail when `--experimental_enable_runfiles` (or `--enable_runfiles` in the 5.0 RC) are set, as they unset the `RUNFILES_MANIFEST_FILE` environment variable. Is this check even necessary...