Does Grazel support Bazel 6.0, rules_kotlin 1.7.0?
ajanuar opened this issue · comments
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
Thanks for reporting, yes it should support (we are Bazel 6 as well), you can override version that Grazel generates with via https://github.com/grab/Grazel/blob/master/build.gradle#L150 this extension.
Configure project :
Running hybrid build
Could you explain a bit what you are trying to do? It seems you are running hybrid build?
Yes, I'm running hybrid build.