rules_kotlin
rules_kotlin copied to clipboard
Bazel rules for Kotlin
Fails with jdeps: ``` cd examples/jdesp_issue bazel build //libKtAndroid1:src_main_kt --@io_bazel_rules_kotlin//kotlin/internal/jvm:experimental_prune_transitive_deps=True --@io_bazel_rules_kotlin//kotlin/internal/jvm:kotlin_deps=True ``` Passes without jdeps: ``` cd examples/jdesp_issue bazel build //libKtAndroid1:src_main_kt --@io_bazel_rules_kotlin//kotlin/internal/jvm:experimental_prune_transitive_deps=True --@io_bazel_rules_kotlin//kotlin/internal/jvm:kotlin_deps=False ``` Error: ``` ERROR: /Users/nkorostelev/Snapchat/Dev/rules_kotlin/examples/jdesp_issue/libKtAndroid1/BUILD.bazel:3:19: KotlinCompile //libKtAndroid1:src_main_kt...
i.e. introduced in https://github.com/bazelbuild/rules_kotlin/pull/508/files
# Background * ABI jars improve incremental compilation by lowering the number of affected libraries by only exposing the public areas. * Strict dependencies attempts to reduce the number of...
I tried to play with the new k2 compiler now that in 1.7.20 the abi-gen plugin is supported, but the jdeps plugin needs to be updated to support k2. Here...
A set of flags we use at Slack. Open to feedback or if this is the right approach. - -Xassertions - -Xjsr305 - -Xjspecify-annotations - -Xtype-enhancement-improvements-strict-mode
Description: There are some guava classes in Kotlin-compiler, such as com.google .common.graph, if guava is also used in the subplugin of ksp, then because the parent delegation model of java...
This PR adds support for running Jdeps when compiling with K2 (#843). High level list of changes: - Enable K2 tests in paramaterized test class - Compile rules_kotlin with Kotlin...
Adds an integration test that matches the example repo, and fully exercises the module support (no accidental inclusion of development dependencies).