-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Allow artifacts from aspects to be excluded #898
Conversation
@shs96c in our discussions, you mentioned an alternate implementation using a |
Isn't this what java_binary.deploy_env was supposed to do? Have you considered using that? |
This isn't quite the same. The problem this PR address is where someone uses an aspect which uses a toolchain, which adds a dependency that the One example is in the test: However, we can't blindly assume that when we see the
|
Put another way, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation.
When using a `java_proto_library` as a dependency of a `java_export` the generated jar contains classes from protobuf, which is unexpected. This PR allows users to specify a list of workspaces to be excluded from the generated jar, and that allows us to filter the class files generated by these aspects.
When using a
java_proto_library
as a dependency of ajava_export
the generated jar contains classes from protobuf, which is unexpected. This PR allows users to specify a list of workspaces to be excluded from the generated jar, and that allows us to filter the class files generated by these aspects.