-
Notifications
You must be signed in to change notification settings - Fork 277
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
Improve scala to java exports #57
Comments
/cc @colinmarc @jcoveney |
What about adding a |
Also, if that doesn't work, we could generate the |
There is a ticket for some API to make this work, but I think the java rules don't have a contract like this. I wouldn't want to add preemptively out of anxiety that it would slow down the build by doubling the number of targets, half of which would not be used in scala-only repos (even with mixed java-scala it is not that common to depend across languages). |
I don't see how to do the I think we may just have to wait until bazelbuild/bazel#970 is solved. I can't see any non-manual way to work around this, but maybe I'm missing something. |
What if we benchmarked preemptively creating |
Sure, that would be fine. I actually don't know how to do it though. Can you see a way? On Wednesday, May 25, 2016, Colin Marc notifications@github.com wrote:
P. Oscar Boykin, Ph.D. | http://twitter.com/posco | http://pobox.com/~boykin |
I think we'd have to give the |
So, with the recent merge of correct deploy jars we can just do Java import How urgent is this? What if we just hope bazel makes it possible to do Java On Thursday, May 26, 2016, Colin Marc notifications@github.com wrote:
P. Oscar Boykin, Ph.D. | http://twitter.com/posco | http://pobox.com/~boykin |
@sdtwigg at the risk of extending our conversation to yet another issue this one seems like the most relevant one about enabling |
Sorry for the delay here. I was ill over the weekend and have been playing catch-up since then. There was a slight confusion in getting the necessary reviews from the bazel team but things should be in sync now. Here is what I have so far: Regarding critical bazel contributions: Regarding rules_scala changes: I have not been aggressively pushing to submit due to these two pending bazel contributions: https://bazel-review.googlesource.com/#/c/9670/ - This cleans things up the implementation and better restricts compile jars. Internally, it means we can just use JavaProvider primarily just like the java rules are using our java provider. Also, cleans up a glitch in current implementation where it is getting transitive compile jars from java rules rather than just the 'local' compile jars. |
Update with good news: All the referenced changes to bazel have been merged. |
Awesome!!!
Do you have any estimate on when you'll be able to have a PR?
…On Tue, 23 May 2017 at 0:28 Stephen Twigg ***@***.***> wrote:
Update with good news: All the referenced changes to bazel have been
merged.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF_ijwcmp_dlckaXO-cbsmPYSQZS2ks5r8f4FgaJpZM4IirKL>
.
|
Thank you so much for pushing those through!
On Mon, May 22, 2017 at 17:44 Ittai Zeidman <notifications@github.com>
wrote:
… Awesome!!!
Do you have any estimate on when you'll be able to have a PR?
On Tue, 23 May 2017 at 0:28 Stephen Twigg ***@***.***>
wrote:
> Update with good news: All the referenced changes to bazel have been
> merged.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#57 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ABUIF_ijwcmp_dlckaXO-cbsmPYSQZS2ks5r8f4FgaJpZM4IirKL
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEJdms3wjZc6wob6tp1KkSJTBfjjEawks5r8lYBgaJpZM4IirKL>
.
|
@sdtwigg |
Hey, |
@johnynek this is solved, right? |
I think so. yes! |
See: #56 (comment)
the fix we added for #18 is still pretty mechanical: you pass output jar names. What we really want is to just list targets and get all their exports and runtime deps for use from java.
In this way, we can test that the runtime paths are correct without conflating with
scala_binary
.The text was updated successfully, but these errors were encountered: