Does Grazel support Bazel 6.0, rules_kotlin 1.7.0?
- Dominant language
- Kotlin
- Stars
- 299
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Hello maintainers,
I've been migrating some of my modules to Bazel, and they are successfully generating .jar file. But when I'm using Grazel, it is not detected `jar` files.
```
Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: tasks
> Configure project :
Running hybrid build
Running bazelisk build //...
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 95ee5368-dd3f-4783-b766-e731fb792ba4
DEBUG: /private/var/tmp/_bazel_albetjanuar/ca846914b849faaaa2037805183bc87b/external/io_bazel_rules_kotlin_master/src/main/starlark/release_archive/repository.bzl:45:14: build Thu Feb 2 08:29:25 WIB 2023
Loading:
Loading: 0 packages loaded
Analyzing: 159 targets (55 packages loaded, 0 targets configured)
Analyzing: 159 targets (126 packages loaded, 8025 targets configured)
INFO: Analyzed 159 targets (127 packages loaded, 8904 targets configured).
INFO: Found 159 targets...
[4 / 238] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[1,191 / 3,304] checking cached actions
INFO: Elapsed time: 6.977s, Critical Path: 1.19s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
Found aar targets : [//:dagger-android.aar, //:dagger-android-support.aar]
Running bazelisk build //:dagger-android.aar //:dagger-android-support.aar
INFO: Invocation ID: 12e9cd86-cd4c-4212-9449-d618516cf754
```
This is one of BUILD.bazel file.
```
load("@rules_jvm_external//:defs.bzl", "artifact")
load("@io_bazel_rules_kotlin//kotlin:android.bzl", "kt_android_library")
kt_android_library(
name = "box",
srcs = glob([
"src/*.kt",
]),
custom_package = "core.ui.box",
manifest = "AndroidManifest.xml",
plugins = ["//:jetpack_compose_compiler_plugin"],
visibility = [
"//visibility:public",
],
deps = [
artifact("androidx.compose.foundation:foundation"),
artifact("androidx.compose.runtime:runtime"),
],
)
```
Can you guys give me any pointer? Thanks
cc @arunkumar9t2
Contributor guide
Research direction
Start with the provided BUILD.bazel example and reproduce the Grazel invocation that successfully builds the .aar targets but does not detect generated .jar files. Trace how Grazel discovers Bazel outputs for the Kotlin Android library setup and compare that with the logged build results. Done means the relevant generated jar files are detected without breaking the existing aar targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100