-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
37 lines (31 loc) · 1.17 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
name := "slick-demo"
scalaVersion := "2.10.2"
initialCommands in console :=
"""|import slickdemo._
|import slickdemo.dal._
|import slickdemo.dal.SlickSupport
|import slickdemo.dal.SlickSupport._
|import slickdemo.dal.SlickSupport.slickSupport._
|import slickdemo.domain._
|import slickdemo.Main._
|import slickdemo.Macros._
|import scala.slick.jdbc.{GetResult, StaticQuery => Q}
|import scala.slick.jdbc.GetResult._
|import Q.interpolation
|//val cm= reflect.runtime.currentMirror
|//val u = cm.universe
|//createDb
|main(Array.empty)
|""".stripMargin
resolvers ++= Seq(
"Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/",
"Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
"Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
Resolver.url(
"Typesafe Ivy Snapshots",
url("http://repo.typesafe.com/typesafe/ivy-snapshots/"))(Resolver.ivyStylePatterns),
Resolver.url(
"Typesafe Snapshots with ivy style",
url("http://repo.typesafe.com/typesafe/snapshots/"))(Resolver.ivyStylePatterns)
)
mainClass := Some("slickdemo.Main")