You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2014/06/05 21:39:02 UTC

[jira] [Created] (SPARK-2040) Support cross-building with Scala 2.11

Patrick Wendell created SPARK-2040:
--------------------------------------

             Summary: Support cross-building with Scala 2.11
                 Key: SPARK-2040
                 URL: https://issues.apache.org/jira/browse/SPARK-2040
             Project: Spark
          Issue Type: Improvement
          Components: Build, Spark Core
            Reporter: Patrick Wendell
            Assignee: Prashant Sharma


Since Scala 2.10/2.11 are source compatible, we should be able to cross build for both versions. From what I understand there are basically three things we need to figure out:

1. Have a two versions of our dependency graph, one that uses 2.11 dependencies and the other that uses 2.10 dependencies.
2. Figure out how to publish different poms for 2.10 and 2.11.

I think (1) can be accomplished by having a scala 2.11 profile. (2) isn't really well supported by Maven since published pom's aren't generated dynamically. But we can probably script around it to make it work. I've done some initial sanity checks with a simple build here:

https://github.com/pwendell/scala-maven-crossbuild



--
This message was sent by Atlassian JIRA
(v6.2#6252)