Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Grazel support Bazel 6.0, rules_kotlin 1.7.0? #56

Open
ajanuar opened this issue Feb 2, 2023 · 2 comments
Open

Does Grazel support Bazel 6.0, rules_kotlin 1.7.0? #56

ajanuar opened this issue Feb 2, 2023 · 2 comments

Comments

@ajanuar
Copy link

ajanuar commented Feb 2, 2023

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

@arunkumar9t2
Copy link
Contributor

arunkumar9t2 commented Feb 8, 2023

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?

@ajanuar
Copy link
Author

ajanuar commented Feb 14, 2023

Yes, I'm running hybrid build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants