-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
57 lines (41 loc) · 1.72 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import com.typesafe.sbt.packager.docker._
import NativePackagerHelper._
name := "paipai"
version := "2.0.6"
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.4.14",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4",
"org.apache.httpcomponents" % "httpmime" % "4.3.5",
"org.apache.httpcomponents" % "httpclient" % "4.3.5",
"mysql" % "mysql-connector-java" % "5.1.31",
"commons-dbutils" % "commons-dbutils" % "1.5",
"commons-collections" % "commons-collections" % "3.2.2",
"org.javassist" % "javassist" % "3.17.1-GA",
"commons-dbcp" % "commons-dbcp" % "1.4",
"javax.mail" % "mail" % "1.4.7",
"org.jsoup" % "jsoup" % "1.8.3",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.6.3",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.6.3",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.6.3",
"net.jpountz.lz4" % "lz4" % "1.3.0",
"com.typesafe" % "config" % "1.3.0",
"io.swagger" % "swagger-annotations" % "1.5.6",
"com.aliyun.openservices" % "tablestore" % "4.1.0"
)
resolvers := Seq(Resolver.defaultLocal,"handuser" at "http://sbt.handuser.com/maven2/")++resolvers.value
val root = (project in file(".")).enablePlugins(DockerPlugin).enablePlugins(JavaAppPackaging)
doc in Compile <<= target.map(_ / "none")
javaOptions in Universal ++= Seq(
" -Dfile.encoding=utf-8"
)
mainClass in Compile := Some("sdk.SDKMain")
dockerCommands :=Seq(
Cmd("FROM","livehl/java8"),
Cmd("WORKDIR","/opt/docker"),
ExecCmd("copy","opt/docker/", "/opt/docker/"),
ExecCmd("CMD","bin/paipai")
)
packageName in Docker := packageName.value
dockerUpdateLatest in Docker := true
dockerRepository :=Some("registry.cn-hangzhou.aliyuncs.com/cdhub")