rules_kotlin
rules_kotlin copied to clipboard
Bazel rules for Kotlin
When I use `experimental_strict_kotlin_deps = "error"` in my toolchain definition, it does appear to find strict dep violations, but it doesn't correctly log the name of the violating dep. This...
Our project (unfortunately) still uses [AutoFactory](https://github.com/google/auto/tree/master/factory), and a couple other legacy in-house APs that require enabling '[non-existent type correction](https://kotlinlang.org/docs/kapt.html#non-existent-type-correction)' in kapt; While the rules currently explicitly disable this flag (https://github.com/bazelbuild/rules_kotlin/issues/634),...
In contrast to ``java_test``, and many other bazel test rules, ``kt_jvm_test`` does not support the ``env`` common attribute to set environment variables in the test execution environment. Is this merely...
First pass at supporting KSP annotation processing as an alternative to Kapt. This PR runs KSP as part of the existing `KotlinCompile` action so that Kotlinc only has to be...
When compiling large modules we noticed `KotlinKapt` would fail with `Too many open files` on MacOS. We increased the shell limit manually from default 256 to 65536. Verified by running...
I ran into an issue using ktlint to format a file containing a value class. I opened an issue on the ktlint repo. I'm also crossposting here in case the...
At the moment, jdeps generator will miss some dependencies for this code: ```kotlin package com.example import io.ktor.server.application.* import io.ktor.server.engine.* import io.ktor.server.netty.* import io.ktor.server.response.* import io.ktor.server.routing.* fun main() { // embeddedServer...
'A?.foo() in class B' now tracks class A in jdeps.
For Kotlin/JS (and Kotlin/Native, but I guess not Kotlin/JVM), JetBrains created a new dependency format for modules built with the IR back-end, klib - https://kotlinlang.org/docs/native-libraries.html#library-format Some projects (e.g. arrow-kt) are...
I am writing my own set of rules on top of `rules_kotlin`, but my stardoc generation is failing due to the "limited visibility" in `rules_kotlin`. There is an open issue...