Issue Details (XML | Word | Printable)

Key: BUILDR-136
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Alex Boisvert
Reporter: Daniel Spiewak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Buildr

Support Scala/Java Joint Compiler

Created: 20/Aug/08 10:01 PM   Updated: 13/Mar/09 07:23 AM
Component/s: Compilers
Affects Version/s: None
Fix Version/s: 1.3.4

Time Tracking:
Not Specified

Resolution Date: 13/Mar/09 07:23 AM


 Description  « Hide
As of Scala 2.7.2 (shortly to be released in stable form), the scalac compiler features joint compilation with Java in the same manner as groovyc. This should be supported by Buildr just as groovyc joint compilation is. Of course, this does beg the question: what happens when you want to use *both* Groovy and Scala alongside Java? As far as I know, the underlying compilers do not provide such support at this time, so Buildr could probably just spit out an error if both the groovy and scala compiler packages were required into the same buildfile.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Boisvert added a comment - 21/Aug/08 12:46 AM
Are you working on a patch? :)

Daniel Spiewak added a comment - 21/Aug/08 12:51 AM
What...you want me to work?! :-)

This isn't a critical issue for me, nor do I see it as a huge priority for the project itself. (hence the priority I assigned it) Nevertheless, I think this should be on the TODO list somewhere, if only to complete the Scala support.

Alex Boisvert added a comment - 21/Aug/08 12:55 AM
Yes, I was already thinking about it. I'm glad you filed an enhancement request for it. It probably won't happen on my side for another 3-4 weeks (leaving on vacation and coming back can be traumatic sometimes) but it will be on my TODO list if nobody else volunteers.

Daniel Spiewak added a comment - 03/Jan/09 08:57 PM
Implemented in a Git fork. I also have a small test project not in the repo. Seems to work nicely!

git://github.com/djspiewak/buildr.git

Daniel Spiewak added a comment - 04/Jan/09 08:37 AM
To clarify, this enhancement is contained entirely by the scala-joint-compilation remote branch.

Alex Boisvert added a comment - 16/Feb/09 06:09 AM
I've added specs for joint compilation.

git://github.com/aboisvert/buildr.git / scala-joint-compilation branch

However, not all specs pass right now due to the scala/tests_spec.rb depending on Scala 2.7.1... posted a question on the mailing list.

Assaf Arkin added a comment - 13/Mar/09 02:46 AM
Upgraded to Scala 2.7.3, so let's see if we can make this happen for 1.3.4

Daniel Spiewak added a comment - 13/Mar/09 02:53 AM
It's ready as far as I'm concerned. I've been dogfooding my implementation of this (available on GitHub) for some time now without any problems. Compilation is a little slower when joint compilation comes into play, but that's mostly due to scalac's lack of change detection (to be fixed in 2.8.0). Alex has specs, and I've written documentation. What's left?