jsuereth / scala-mojo-support

Helper to create maven mojo projects in the Scala languages
BSD 3-Clause "New" or "Revised" License
20 stars 10 forks source link

Cross build for Scala 2.9 and 2.10 #11

Closed rossabaker closed 11 years ago

rossabaker commented 11 years ago

Use a separate POM for each minor version of Scala, and add it to the artifactId. Could do a _2.9.1, _2.9.2, etc., like SBT convention, but this won't be used by SBT anyway, so this is the minimum that supports binary compatibility.

Alternatively, 0.5 could just be the Scala 2.10.x release, but it's trivial to support both in case anybody enhances this.

I'll move the 2.10.0-RC2 pom to a simple _2.10 once it's final. Mainly want to get a Scalate port up and running, and this is one of our blockers.

jsuereth commented 11 years ago

LGTM. If I was feeling fun, I'd set up an sbt build to do the cross-versioning and auto generate the poems.

jsuereth commented 11 years ago

Oh, as an aside, can you update a READMe file about the cross build?

rossabaker commented 11 years ago

Yes, I was going to circle back to the docs if the approach was ruled Not Crazy. Thanks for the merge.

I thought about the sbt generator too, and then I looked at my scar from building an sbt plugin in maven. That hurt mostly due to getting sbt libs in a maven repo, so this direction might be easier.