diff --git a/.gitignore b/.gitignore index 34ef3b46017..d39a369df7f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ project/plugins/project/ .settings/ .cache .project +.idea/ \ No newline at end of file diff --git a/project/Build.scala b/project/Build.scala index a4ade964af2..4bd0e28beed 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -1,21 +1,20 @@ import sbt._ import sbt.Keys._ -import play.Project._ import sbt.Task import sbtassembly.PathList import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global +import play.sbt.routes.RoutesKeys._ object Dependencies{ - val braingamesVersion = "6.10.16-master-fix" + val braingamesVersion = "8.9.1" val braingamesDataStore = "com.scalableminds" %% "braingames-datastore" % braingamesVersion } object Resolvers { - val scmRel = Resolver.url("Scalableminds REL Repo", url("http://scalableminds.github.com/releases/"))(Resolver.ivyStylePatterns) - val scmIntRel = "scm.io intern releases repo" at "http://maven.scm.io/releases/" - val scmIntSnaps = "scm.io intern snapshots repo" at "http://maven.scm.io/snapshots/" + val scmRel = "scm.io releases S3 bucket" at "https://s3-eu-central-1.amazonaws.com/maven.scm.io/releases/" + val scmSnaps = "scm.io snapshots S3 bucket" at "https://s3-eu-central-1.amazonaws.com/maven.scm.io/snapshots/" } object ApplicationBuild extends Build with sbtassembly.AssemblyKeys { @@ -25,12 +24,14 @@ object ApplicationBuild extends Build with sbtassembly.AssemblyKeys { lazy val datastoreSettings = Seq( - scalaVersion := "2.10.3", + version := braingamesVersion, + libraryDependencies += braingamesDataStore, + scalaVersion := "2.11.7", resolvers ++= Seq( scmRel, - scmIntRel, - scmIntSnaps + scmSnaps ), + routesGenerator := InjectedRoutesGenerator, assemblyMergeStrategy in assembly := { case "application.conf" => MergeStrategy.concat case "package-info.class" => MergeStrategy.concat @@ -57,10 +58,8 @@ object ApplicationBuild extends Build with sbtassembly.AssemblyKeys { } ) - lazy val standaloneDatastore: Project = play.Project( - "standalone-datastore", - braingamesVersion, - dependencies = Seq(braingamesDataStore), - settings = datastoreSettings) + lazy val standaloneDatastore: Project = Project("standalone-datastore", file(".")) + .enablePlugins(play.PlayScala) + .settings(datastoreSettings:_*) } diff --git a/project/plugins.sbt b/project/plugins.sbt index 6cf4919d954..eca9d3dd442 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -3,4 +3,4 @@ resolvers ++= Seq( "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" ) -addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0") +addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")