This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.sbt
42 lines (41 loc) · 1.85 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
lazy val root = (project in file("."))
.enablePlugins(PlayScala)
.enablePlugins(SbtWeb)
.enablePlugins(ScalikejdbcPlugin)
.enablePlugins(SbtScalariform)
.settings(
name := "hello-scalikejdbc",
version := "0.1",
scalaVersion := "2.12.6",
resolvers ++= Seq(
"sonatype releases" at "http://oss.sonatype.org/content/repositories/releases",
"scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
),
// https://github.com/sbt/sbt/issues/2217
fullResolvers ~= { _.filterNot(_.name == "jcenter") },
libraryDependencies ++= Seq(
"org.scalikejdbc" %% "scalikejdbc" % scalikejdbcVersion,
"org.scalikejdbc" %% "scalikejdbc-config" % scalikejdbcVersion,
"org.scalikejdbc" %% "scalikejdbc-play-initializer" % scalikejdbcPlayVersion,
"org.scalikejdbc" %% "scalikejdbc-play-fixture" % scalikejdbcPlayVersion,
"com.h2database" % "h2" % h2Version,
"org.json4s" %% "json4s-ext" % "3.4.+",
"com.github.tototoshi" %% "play-json4s-native" % "0.8.+",
"org.flywaydb" %% "flyway-play" % "4.0.+",
guice,
"org.scalikejdbc" %% "scalikejdbc-test" % scalikejdbcVersion % "test",
specs2 % "test"
),
initialCommands := """
import scalikejdbc._, config._
import models._, utils._
DBs.setupAll
DBInitializer.run()
implicit val autoSession = AutoSession
val (p, c, s, ps) = (Programmer.syntax("p"), Company.syntax("c"), Skill.syntax("s"), ProgrammerSkill.syntax("ps"))
""",
routesGenerator := InjectedRoutesGenerator
)
lazy val scalikejdbcVersion = scalikejdbc.ScalikejdbcBuildInfo.version
lazy val scalikejdbcPlayVersion = "2.6.0-scalikejdbc-3.3"
lazy val h2Version = "1.4.+"