-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
32 lines (25 loc) · 886 Bytes
/
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
scalaVersion := "2.12.8"
val dbUser = System.getProperty("db.user", "test")
val dbPass = System.getProperty("db.pass", "test")
val dbUrl = System.getProperty("db.url", "jdbc:mysql://localhost:3306/test")
enablePlugins(FlywayPlugin)
flywayUrl := dbUrl
flywayUser := dbUser
flywayPassword := dbPass
enablePlugins(CodegenPlugin)
slickCodegenDatabaseUrl := dbUrl
slickCodegenDatabaseUser := dbUser
slickCodegenDatabasePassword := dbPass
slickCodegenDriver := slick.jdbc.MySQLProfile
slickCodegenJdbcDriver := "com.mysql.cj.jdbc.Driver"
slickCodegenOutputPackage := "org.opal.db.model"
slickCodegenOutputDir := file("src/main/scala")
lazy val core = (project in file("."))
.settings(
organization := "org.opal",
name := "db-model",
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.3.0",
"mysql" % "mysql-connector-java" % "8.0.15"
)
)