FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adopt proto_lang_toolchain for java_grpc_library() by AgraVator · Pull Request #12994 · grpc/grpc-java · GitHub

/ grpc-java Public

Adopt proto_lang_toolchain for java_grpc_library() - #12994

Open
AgraVator wants to merge 2 commits into
grpc:masterfrom
AgraVator:adopt-proto-lang-toolchain
Open

Adopt proto_lang_toolchain for java_grpc_library()#12994
AgraVator wants to merge 2 commits into
grpc:masterfrom
AgraVator:adopt-proto-lang-toolchain

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

AgraVator requested a review from ejona86 August 18, 2026 17:09
AgraVator marked this pull request as ready for review August 18, 2026 17:09
Comment thread compiler/BUILD.bazel Outdated
Comment thread java_grpc_library.bzl
Comment thread java_grpc_library.bzl Outdated
Comment thread java_grpc_library.bzl Outdated
AgraVator requested a review from ejona86 August 20, 2026 07:04
Comment thread java_grpc_library.bzl
allow_empty = False,
providers = [JavaInfo],
),
# This attribute has a "magic" name recognized by the native DexArchiveAspect (b/78647825).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why was this comment removed? Did you test that a different attribute name here still works with dexing?

Comment thread compiler/BUILD.bazel
load("@rules_java//java:defs.bzl", "java_library")
load("@rules_jvm_external//:defs.bzl", "artifact")
load("//:java_grpc_library.bzl", "java_rpc_toolchain")
load("@rules_proto//proto:defs.bzl", "proto_lang_toolchain")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm surprised to see a usage of @rules_proto, since that repo is dead/archived. Is this a temporary thing to support older Bazel versions and we'll swap to the protobuf repo later?

Comment thread java_grpc_library.bzl
java_info = java_common.compile(
ctx,
java_toolchain = toolchain.java_toolchain[java_common.JavaToolchainInfo],
java_toolchain = ctx.toolchains["@bazel_tools//tools/jdk:toolchain_type"].java,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm surprised to see a literal being passed here. Is that not defined somewhere?

Comment thread java_grpc_library.bzl
source_jars = [srcjar],
output = ctx.outputs.jar,
output_source_jar = ctx.outputs.srcjar,
plugins = [plugin[JavaPluginInfo] for plugin in toolchain.java_plugins],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It looks like we need to still support this, as there are usages internally. I don't know if that means we need a second toolchain, or what.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL