Source dependency in 0.13 syntax

33 views
Skip to first unread message

eugene yokota

unread,
Aug 23, 2013, 1:50:13 PM8/23/13
to simple-b...@googlegroups.com
Hi,

Among the various dependencies in sbt builds, the oddball out is the source deps,
secretly tucked away in [Full Configuration (Draft)][1] basement.

Would this be featured more prominently now that you can write the following in build.sbt?

lazy val external = ProjectRef(uri("git://github.com/foo/bar.git#hash"), "library")

lazy val app
= Project("app", file(".")).dependsOn(external)

-eugene


Mark Harrah

unread,
Aug 24, 2013, 12:21:36 PM8/24/13
to simple-b...@googlegroups.com
On Fri, 23 Aug 2013 10:50:13 -0700 (PDT)
eugene yokota <eed3...@gmail.com> wrote:

> Hi,
>
> Among the various dependencies in sbt builds, the oddball out is the source
> deps,
> secretly tucked away in [Full Configuration (Draft)][1] basement.
>
> Would this be featured more prominently now that you can write the
> following in build.sbt?

Yes. Also, it has historically had several bugs that made it problematic to use. Those were generally fixed in 0.12.x, but the docs never got pulled out of the basement.

-Mark

> lazy val external = ProjectRef(uri("git://github.com/foo/bar.git#hash"),
> "library")
>
> lazy val app = Project("app", file(".")).dependsOn(external)
>
> -eugene
>
>
> [1]: http://www.scala-sbt.org/0.12.4/docs/Dormant/Full-Configuration.html#project-relationships
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages