Using GitHub project in SBT

Sbt allows you to use github as one of the dependencies.  Here is the Build.scala that does the trick:

import sbt._
import Keys._

object ExampleBuild extends Build {

  val dependencies = Seq(
    "org.scalatest" % "scalatest_2.11" % "2.2.4"

  // libraryDependencies += "org.scalatest" % "scalatest_2.11" % "3.0.0-SNAP4"

  lazy val myProject = Project("MyProject", file("."))
      version       := "0.2",
      scalaVersion  := "2.11.6",
      libraryDependencies ++= dependencies
      //scalacOptions := Seq("-deprecation"),

  // it is better to specify specific commit tag: uri("git://")
  lazy val factorieProject = RootProject(uri("git://"))



keywords: scala git sbt bitbucket build include

About Neil Rubens

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *