Skip to content
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

Provide JavaInfo so jarjar targets can be a dep of scala targets. #4

Merged
merged 1 commit into from
Jul 28, 2018

Conversation

beala-stripe
Copy link
Contributor

Recent versions of rules_scala require that dependencies return JavaInfo: https://github.com/bazelbuild/rules_scala/pull/523/files#diff-3830e6e26d863974d38e511b04761916R36

This adds a JavaInfo to jar_jar rule so scala targets can depend on them.

@@ -7,6 +7,11 @@ def _jar_jar_impl(ctx):
progress_message="jarjar %s" % ctx.label,
arguments=["process", ctx.file.rules.path, ctx.file.input_jar.path, ctx.outputs.jar.path])

return JavaInfo(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think if we do providers like this we might also want to return DefaultInfo with the outputs.jar as well.

Want to follow up with that? (Note you can return a list of providers)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup will do!

Copy link
Collaborator

Choose a reason for hiding this comment

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

can't wait, thanks!

@johnynek johnynek merged commit b19b2ab into bazeltools:master Jul 28, 2018
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