timowest / scalagen

Java to Scala transformation
Apache License 2.0
217 stars 32 forks source link

Cross compile for scala 2.9.3 and 2.10.1 #50

Closed dnadolny closed 11 years ago

dnadolny commented 11 years ago

This follows the sbt convention of adding the version number to the artifactId separated by an underscore. I think it's better to do it this way rather than using classifiers, because this way is fairly clean, and doing it with classifiers would make it hard to add as a dependency to an sbt project. This is the way it's done in the scalatest project: https://github.com/scalatest/scalatest/blob/master/pom_template.xml

This may be more of a starting point, because I don't know what changes should be made to the parent pom (and to the scalagen-maven-plugin pom). Is there a way to do it without duplication? I'm not sure.

timowest commented 11 years ago

This looks like a good starting point.

But you will need a similar setup for the scalagen-maven-plugin.

For the root you can use the base artifactId.

dnadolny commented 11 years ago

I've updated the scalagen-maven-plugin pom. I'm not sure what you mean for the root though, what change were you hoping for?

timowest commented 11 years ago

For the root I meant that no changes are needed.

dnadolny commented 11 years ago

Great. When you have the time, could you bump the version and publish the artifacts?