sbt / sbt-sriracha

http://eed3si9n.com/hot-source-dependencies-using-sbt-sriracha
MIT License
17 stars 4 forks source link

sbt-sriracha

hot sauce for your build.

This is an experimental plugin to support source/binary hybrid dependencies.

setup

In project/plugins.sbt:

addSbtPlugin("com.eed3si9n" % "sbt-sriracha" % "0.1.0")

usage

To use GitHub as hybrid dependency:

lazy val utestJVMRef = ProjectRef(uri("git://github.com/eed3si9n/utest.git#5b19f47c"), "utestJVM")
lazy val utestJVMLib = "com.lihaoyi" %% "utest" % "0.6.4"

lazy val root = (project in file("."))
  .sourceDependency(utestJVMRef, utestJVMLib)
  .settings(
    name := "Hello world",
    testFrameworks += new TestFramework("utest.runner.Framework"),
  )

To use local repo as hybrid dependency:

lazy val utestJVMRef = ProjectRef(IO.toURI(workspaceDirectory / "utest"), "utestJVM")
lazy val utestJVMLib = "com.lihaoyi" %% "utest" % "0.6.4"

lazy val root = (project in file("."))
  .sourceDependency(utestJVMRef, utestJVMLib)
  .settings(
    name := "Hello world",
    testFrameworks += new TestFramework("utest.runner.Framework"),
  )

and clone µTest to $HOME/workspace/.

license

MIT License