rules_kotlin
rules_kotlin copied to clipboard
Bazel rules for Kotlin
This builds on top of #528 in order to integrate lint tests. The second commit ("Automatically generate lint tests...") has more information in how to use the generated lint tests,...
Running `bazel build //lib:lib.aar` for the [android example](https://github.com/bazelbuild/rules_kotlin/tree/master/examples/android) produces this error: `AndroidManifest.xml:2: error: attribute 'package' in tag is not a valid Android package name: 'lib'.` It seems like the package...
The targets printed [here](https://github.com/bazelbuild/rules_kotlin/blob/09b6f5d87906cdffe82a0b2e24709f2311a2721d/src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/JdepsMerger.kt#L104-L106) are inexistant (at least for Android), they seem to have a `_kt` suffix - added [here](https://github.com/bazelbuild/rules_kotlin/blob/master/kotlin/internal/jvm/android.bzl#L36). It doesn't seem to be an issue for other rules,...
Satisfies the dependency of the jetpack compose example (and to be consistent). Also add JPC to the CI system.
The patterns used to identify files to test now no longer accept absolute paths, causing `ktlint_fix` to fail when used with that version.
My teammates have been facing this issue with rules_kotlin where kotlinx libs aren't imported by intellij. Sometimes a sync fixes it but for others they had to patch intellij's bazel...
**Background** Internally, we needed to support javac arguments in kotlin rules to pass through dagger options to KAPT such as fastInit and disable format generated sources. This is our own...
I have the following error on rules_kotlin 1.5.0 alpha 1 and higher: ``` in kt_jvm_library rule [this is my rule for library]: Traceback (most recent call last): File "[...]/e810e7b62577a3b59b8845a708b42f0a/external/io_bazel_rules_kotlin/kotlin/internal/jvm/impl.bzl", line...
Avenues: * Avoid running kapt over the entire classpath * Generate stubs and use light analysis to move kapt into a parallel action Correctness considerations: * kapt currently generates files...
Bazel throws the following error when platforms option is specified: ``` INFO: Build option --toolchain_resolution_debug has changed, discarding analysis cache. ERROR: While resolving toolchains for target //kotlin/libs:gson_lib_deps: No matching toolchains...