bazel: Add java toolchain type to all rules which are using java_common (#10225)

This commit is contained in:
kotlaja 2023-05-30 20:48:43 +02:00 committed by GitHub
parent 4277867a7d
commit e6d9b41895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,7 @@ _java_grpc_library = rule(
default = Label("//compiler:java_grpc_library_toolchain"),
),
},
toolchains = ["@bazel_tools//tools/jdk:toolchain_type"],
fragments = ["java"],
outputs = {
"jar": "lib%{name}.jar",
@ -153,6 +154,7 @@ _java_lite_grpc_library = rule(
default = Label("//compiler:java_lite_grpc_library_toolchain"),
),
},
toolchains = ["@bazel_tools//tools/jdk:toolchain_type"],
fragments = ["java"],
outputs = {
"jar": "lib%{name}.jar",