You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like java_export includes classes from targets marked with maven:compile_only.
I have seen this in google_bazel_common examples. For example:
AutoValue is such tagged target but I needed to exclude that from Closure Compiler in this PR.
Linked PR includes relevant test and should be reproducable by removing excluded_workspaces from java_export.
I am also working on a patch that upgrades Closure Compiler to Bazel 8 and uses latest versions of rules_jvm_external and google_bazel_common and I can confirm that problem still exists and unfortunately existing workaround doesn't work anymore since google_bazel_common generated targets show rules_jvm_external as workspace now:
It looks like
java_export
includes classes from targets marked with maven:compile_only.I have seen this in
google_bazel_common
examples. For example:AutoValue is such tagged target but I needed to exclude that from Closure Compiler in this PR.
Linked PR includes relevant test and should be reproducable by removing
excluded_workspaces
fromjava_export
.I am also working on a patch that upgrades Closure Compiler to Bazel 8 and uses latest versions of
rules_jvm_external
andgoogle_bazel_common
and I can confirm that problem still exists and unfortunately existing workaround doesn't work anymore sincegoogle_bazel_common
generated targets showrules_jvm_external
as workspace now:I'm switching to a different workaround to use deploy_env attribute but I thought the issue is worthwhile reporting.
The text was updated successfully, but these errors were encountered: