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("."))
    .dependsOn(factorieProject)
    .settings(
      version       := "0.2",
      scalaVersion  := "2.11.6",
      libraryDependencies ++= dependencies
      //scalacOptions := Seq("-deprecation"),
      )

  // it is better to specify specific commit tag: uri("git://github.com/sbt/sbt-assembly#0.9.1")
  lazy val factorieProject = RootProject(uri("git://github.com/factorie/factorie.git"))
}

 

 

keywords: scala git sbt bitbucket build include

About Neil Rubens

see http://ActiveIntelligence.org
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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


*