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

java/scala interoperability #500

Closed
barlevalon opened this issue Oct 11, 2015 · 3 comments
Closed

java/scala interoperability #500

barlevalon opened this issue Oct 11, 2015 · 3 comments
Assignees
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) type: feature request

Comments

@barlevalon
Copy link

Currently, as I understand, the only way to build/package mixed java/scala projects is into two separate jars (with separate targets) for each language.
This means that dependencies between the two can only be one-way. This is currently a major hurdle for us at Wix as we try to adopt Bazel. We have many mixed java-scala projects with bi-directional dependencies, currently being built with Maven.
Perhaps I'm missing something and there is a way to build the java and scala classes "together"? If not, any plans to increase interoperability in the future? I'd be glad to work on it myself, just need to be pointed in the right direction.

@laszlocsomor
Copy link
Contributor

Do you mean you'd want a library rule with both .java and .scala files in the srcs?

You've probably seen these, but just in case:

@damienmg damienmg added type: feature request P3 We're not considering working on this, but happy to review a PR. (No assignee) labels Nov 17, 2015
@damienmg
Copy link
Contributor

As I suggested in another issue, we could wrap scala file into a java_import or do something similar than the protobuf rules to avoid having too much of the java support to copy

@iirina
Copy link
Contributor

iirina commented Mar 13, 2017

I'll close this as duplicate of #970.

@iirina iirina closed this as completed Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) type: feature request
Projects
None yet
Development

No branches or pull requests

5 participants