Skip to content

Instantly share code, notes, and snippets.

@lazyval
Created August 1, 2012 23:20
Show Gist options
  • Save lazyval/3231506 to your computer and use it in GitHub Desktop.
Save lazyval/3231506 to your computer and use it in GitHub Desktop.
sbt config
//~/.sbt/plugins/build.sbt
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0-SNAPSHOT")
scalaVersion := "2.9.1"
// project/Build.scala
import sbt._
import Keys._
import AndroidKeys._
object General {
val settings = Defaults.defaultSettings ++ Seq(
scalaVersion := "2.9.2"
)
}
object AndroidBuild extends Build {
lazy val main = Project("cvAndroid",file("."))
lazy val tests = Project(
// blah blah
) dependsOn main
}
object Dependencies {
val scalaCompiler = "org.scala-lang" % "scala-compiler" % "2.9.2"
val scalaLibrary = "org.scala-lang" % "scala-library" % "2.9.2"
val scalaTest = "org.scalatest" %% "scalatest" % "1.8.RC1" % "test"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment