rules_kotlin
rules_kotlin copied to clipboard
Bazel rules for Kotlin
I observed that cold start on the persistent workers can play a part in slow builds. An example with Kapt (using `--define kt_timings=1`) ``` * kapt (org.mapstruct.ap.MappingProcessor, io.micronaut.annotation.processing.TypeElementVisitorProcessor, io.micronaut.annotation.processing.BeanDefinitionInjectProcessor, io.micronaut.annotation.processing.AggregatingTypeElementVisitorProcessor,...
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4083#01919725-3854-45aa-958b-05bf8da50252 Platform: Ubuntu Logs: ``` (04:02:03) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/2b7d31ca1d5c71319daa1407196088e9/external/release_archive/repository.bzl:54:17: An error occurred during the fetch of repository 'rules_kotlin': Traceback (most recent call last): File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/2b7d31ca1d5c71319daa1407196088e9/external/release_archive/repository.bzl", line 54, column 17, in...
https://github.com/pinterest/ktlint/releases/tag/1.3.1
I would like to be able to define and use multiple Kotlin toolchains in my project, which uses bzlmod. I would like to be able to have one toolchain with...
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4065#019168cb-ee0f-4299-af56-2be09012a8c3 Platform: Ubuntu Logs: ``` ERROR: /var/lib/buildkite-agent/builds/bk-docker-bg58/bazel-org-repo-root/rules_kotlin/kotlin/BUILD:39:12: Generating proto for Starlark doc for lint failed: (Exit 1): lint_stardoc failed: error executing Stardoc command (from target //kotlin:lint) (cd /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f5723a0613570fe02e7fb0d071725b12/sandbox/linux-sandbox/11/execroot/_main &&...
[Bazel CI] Build failed with errors in `rules_kotlin` and 'android_ndk_repository' is not defined`
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4045#01913553-7d45-48d7-8256-b0f56ad4aef2 Platform: Ubuntu Logs: ``` ERROR: [0m/var/lib/buildkite-agent/builds/bk-docker-00b7/bazel-org-repo-root/rules_kotlin/examples/jetpack_compose/WORKSPACE:89:1: name 'android_ndk_repository' is not defined (did you mean 'android_sdk_repository'?) ERROR: [0merror loading package '': Encountered error while reading extension file 'host/extension.bzl': no...
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4045#01913553-7d47-4e8f-8887-e0620b679dc0 Platform: Ubuntu Logs: ``` ERROR: [0m/var/lib/buildkite-agent/builds/bk-docker-jsv6/bazel-org-repo-root/rules_kotlin/kotlin/BUILD:39:12: Generating proto for Starlark doc for lint failed: (Exit 1): lint_stardoc failed: error executing Stardoc command (from target //kotlin:lint) Exception: com.google.devtools.build.lib.cmdline.LabelSyntaxException: invalid...