Can multi-projects from GIT be used as SBT dependencies?

后端 未结 1 1271
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 17:11

I would like to use banana-rdf in my project, ideally by defining it as a dependency in a build.scala using dependsOn:

lazy val roo         


        
相关标签:
1条回答
  • 2020-12-01 17:33

    I depend on Banana RDF subprojects all the time with ProjectRef, like this:

    lazy val core: Project = Project(
      ...
    ).dependsOn(
      ProjectRef(uri("git://github.com/w3c/banana-rdf.git"), "banana-jena")
    )
    

    One especially nice part is that you can just tack a commit or branch name as a fragment identifier on the URI and everything works exactly as you'd expect.

    0 讨论(0)
提交回复
热议问题