Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1844

Support maven-style dependency resolution in sbt build

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Auto Closed
    • None
    • None
    • Build

    Description

      [Currently this is a brainstorm/wish - not sure it's possible]

      Ivy/sbt and maven use fundamentally different strategies when transitive dependencies conflict (i.e. when we have two copies of library Y in our dependency graph on different versions).

      This actually means our sbt and maven builds have been divergent for a long time.

      Ivy/sbt have a pluggable notion of a conflict manager. The default chooses the newest version of the dependency. SBT allows this to be changed though.

      Maven employs the nearest wins policy which means the version closes to the project root is chosen.

      It would be nice to be able to have matching semantics in the builds. We could do this by writing a conflict manger in sbt that mimics Maven's behavior. The fact that IVY-813 has existed for 6 years without anyone doing this makes me wonder if that is not possible or very hard

      Attachments

        Issue Links

          Activity

            People

              joshrosen Josh Rosen
              pwendell Patrick Wendell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: