Re: [sbt] Cross building multiple projects

21 views
Skip to first unread message

Brennan Saeta

unread,
Mar 5, 2013, 3:38:09 PM3/5/13
to simple-b...@googlegroups.com


On Tue, Mar 5, 2013 at 7:23 AM, Donald Szeto <donald...@gmail.com> wrote:
Hello,

I cannot find a similar question in the group. If it has been asked before, I would be very grateful of any pointers.

I have a root project and a subproject like this:

project/Build.scala:
import sbt._
import Keys._

object MyBuild extends Build {
  lazy val root = Project(id = "root", base = file(".")) aggregate(child)

  lazy val child = Project(
    id = "child",
    base = file("child")
  )
}

child/build.sbt:
crossScalaVersions := Seq("2.9.2", "2.10.0")

When I do "sbt +compile" at the root project, it only builds binaries for 2.9.2. Is it possible to cross build sub-projects?

Thanks,
Donald

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages