Is it possible to cross-compile scala versions like you can in sbt?

Is it possible to cross compile multiple scala versions like sbt? I would like to produce a 2.9.2 build and a 2.10.3 build.

Thanks, Andrew

It’s not a built-in feature, but with some scripting you can get pretty far. In my “Polyglot Gradle” talk I present a proof-of-concept. Videos of the talk are available online (e.g. from, but I’m not sure about the slides/code.

Ill check it out. Thanks