aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorEugene Yokota <eed3si9n@gmail.com>2017-08-05 05:08:37 -0400
committerEugene Yokota <eed3si9n@gmail.com>2017-08-05 05:08:37 -0400
commit392cb3aea7a26adacfcdb65c7cc47764711c871a (patch)
tree11aa3af5d12f035d4d9ab9dd60c579cf6b2ec51b /build.sbt
parent5a55990edd587fa7c86c776f7f1871597444ee0d (diff)
downloadsbt-boilerplate-392cb3aea7a26adacfcdb65c7cc47764711c871a.tar.gz
sbt-boilerplate-392cb3aea7a26adacfcdb65c7cc47764711c871a.tar.bz2
sbt-boilerplate-392cb3aea7a26adacfcdb65c7cc47764711c871a.zip
cross build to sbt 1.x
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt30
1 files changed, 22 insertions, 8 deletions
diff --git a/build.sbt b/build.sbt
index 87eeaf3..f5593fe 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,10 +1,24 @@
-sbtPlugin := true
+lazy val root = (project in file("."))
+ .settings(
+ sbtPlugin := true,
+ name := "sbt-boilerplate",
+ organization := "io.spray",
+ version := "0.6.1-SNAPSHOT",
+ description := "An SBT plugin for simple generation of boilerplate",
+ startYear := Some(2012),
+ homepage := Some(url("http://github.com/sbt/sbt-boilerplate")),
+ organizationHomepage := Some(url("http://spray.io")),
-scalacOptions := Seq("-deprecation", "-encoding", "utf8")
+ licenses in GlobalScope += "BSD" -> url("https://github.com/sbt/sbt-boilerplate/raw/master/LICENSE"),
-libraryDependencies <+= scalaVersion {
- case v if v startsWith "2.9." => "org.specs2" % "specs2_2.9.3" % "1.12.4.1" % "test"
- case "2.10.4" => "org.specs2" %% "specs2" % "2.3.13" % "test"
-}
-
-ScalariformSupport.formatSettings \ No newline at end of file
+ scalacOptions := Seq("-deprecation", "-encoding", "utf8"),
+ libraryDependencies += {
+ scalaBinaryVersion.value match {
+ case v if v startsWith "2.9." => "org.specs2" % "specs2_2.9.3" % "1.12.4.1" % Test
+ case "2.10" => "org.specs2" %% "specs2" % "2.4.17" % Test
+ case "2.12" => "org.specs2" %% "specs2" % "2.4.17" % Test
+ }
+ },
+ ScalariformSupport.formatSettings,
+ resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
+ )