-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
36 lines (24 loc) · 1.37 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
organization := "tv.cntt"
name := "mydit"
version := "1.7-SNAPSHOT"
scalaVersion := "2.11.8"
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked")
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
//------------------------------------------------------------------------------
// jul-to-slf4j: mysql-binlog-connector-java logs to JUL
// janino: for writing condition in logback.xml
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.7"
libraryDependencies += "org.slf4j" % "jul-to-slf4j" % "1.7.21"
libraryDependencies += "org.codehaus.janino" % "janino" % "3.0.0"
libraryDependencies += "com.typesafe" % "config" % "1.3.0"
libraryDependencies += "mysql" % "mysql-connector-java" % "6.0.3"
libraryDependencies += "com.github.shyiko" % "mysql-binlog-connector-java" % "0.3.2"
libraryDependencies += "org.mongodb" % "mongo-java-driver" % "2.14.3"
//EclipseKeys.withSource := true
// Put config directory in classpath for easier development --------------------
// For "sbt console"
unmanagedClasspath in Compile <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }
// For "sbt run"
unmanagedClasspath in Runtime <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }
// Copy these to target/xitrum when sbt xitrum-package is run
XitrumPackage.copy("config", "script")