From 7ec9894aa0dfbc8124fdcb2a883cfb0089aa5212 Mon Sep 17 00:00:00 2001 From: Dmitry Linov Date: Fri, 26 Sep 2014 00:35:38 +0300 Subject: [PATCH 1/2] Updated sbt and packages to the latest versions --- build.sbt | 22 +++++++++++----------- project/build.properties | 2 +- project/build.sbt | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/build.sbt b/build.sbt index 5891663..7c658ac 100644 --- a/build.sbt +++ b/build.sbt @@ -1,12 +1,12 @@ -import com.typesafe.startscript.StartScriptPlugin +import com.typesafe.sbt.SbtStartScript -seq(StartScriptPlugin.startScriptForClassesSettings: _*) +seq(SbtStartScript.startScriptForClassesSettings: _*) organization := "com.example" version := "0.1" -scalaVersion := "2.10.3" +scalaVersion := "2.11.2" scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8") @@ -16,20 +16,20 @@ resolvers ++= Seq( libraryDependencies ++= { - val akkaV = "2.1.4" - val sprayV = "1.1-RC3" + val akkaV = "2.3.6" + val sprayV = "1.3.1" Seq( - "io.spray" % "spray-can" % sprayV, - "io.spray" % "spray-routing" % sprayV, - "io.spray" % "spray-testkit" % sprayV, + "io.spray" %% "spray-can" % sprayV, + "io.spray" %% "spray-routing" % sprayV, + "io.spray" %% "spray-testkit" % sprayV, "com.typesafe.akka" %% "akka-actor" % akkaV, "com.typesafe.akka" %% "akka-testkit" % akkaV, - "org.specs2" %% "specs2" % "2.2.3" % "test" + "org.specs2" %% "specs2-core" % "2.4.3" % "test" ) } -libraryDependencies += "com.typesafe" %% "scalalogging-slf4j" % "1.0.1" +libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.1.0" -libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.2" +libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.7" seq(Revolver.settings: _*) diff --git a/project/build.properties b/project/build.properties index a8c2f84..64abd37 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=0.12.0 +sbt.version=0.13.6 diff --git a/project/build.sbt b/project/build.sbt index d9e9cca..559505b 100644 --- a/project/build.sbt +++ b/project/build.sbt @@ -1,3 +1,3 @@ resolvers += Classpaths.typesafeResolver -addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.3") +addSbtPlugin("com.typesafe.sbt" % "sbt-start-script" % "0.10.0") From 90ebe7ad435f0f09ff2d5b63a498d929022e0533 Mon Sep 17 00:00:00 2001 From: Dmitry Linov Date: Fri, 26 Sep 2014 00:59:13 +0300 Subject: [PATCH 2/2] Updated README --- README.markdown | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.markdown b/README.markdown index 7dccb36..b25f082 100644 --- a/README.markdown +++ b/README.markdown @@ -30,9 +30,6 @@ Follow these steps to get started: 9. Start hacking on `src/main/scala/com/example/MyService.scala` -## Important note -This template currently uses sbt 0.12.0, and changing it to use 0.12.4 or 0.13.0 [seems to not work](http://stackoverflow.com/questions/19998340/failing-to-include-com-typesafe-in-build-sbt-for-scala-and-spray-on-heroku). - ## Additional resources + [spray.io](http://spray.io/) + [Heroku Scala getting started](https://devcenter.heroku.com/articles/getting-started-with-scala) - this is not spray.io specific but may add some insight