Skip to content
Snippets Groups Projects
Commit 5bb046d5 authored by Tink Team's avatar Tink Team Committed by Copybara-Service
Browse files

Migrate from legacy 'java' provider to the JavaInfo provider.

'java' provider is deprecated and is going to be removed from blaze soon.

PiperOrigin-RevId: 266361895
parent 337fd980
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ def _java_single_jar(ctx):
inputs = depset(transitive = [inputs, dep.java.transitive_runtime_deps])
source_jars = depset(transitive = [source_jars, dep.java.source_jars])
for td in dep.java.transitive_runtime_deps:
if hasattr(td, "java"):
if JavaInfo in td:
source_jars = depset(transitive = [source_jars, td.java.source_jars])
compress = ""
......@@ -74,7 +74,7 @@ def _java_single_jar(ctx):
java_single_jar = rule(
attrs = {
"deps": attr.label_list(providers = ["java"]),
"deps": attr.label_list(providers = [JavaInfo]),
"_singlejar": attr.label(
default = Label("@bazel_tools//tools/jdk:singlejar"),
cfg = "host",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment