-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.sbt
46 lines (25 loc) · 1.11 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
name := "unicorn-shell"
mainClass in Compile := Some("unicorn.shell.Main")
// native packager
enablePlugins(JavaAppPackaging)
maintainer := "Haifeng Li <[email protected]>"
packageName := "unicorn"
packageSummary := "Unicorn"
packageDescription := "Unicorn"
executableScriptName := "unicorn"
bashScriptConfigLocation := Some("${app_home}/../conf/unicorn.ini")
bashScriptExtraDefines += """addJava "-Dsmile.home=${app_home}""""
bashScriptExtraDefines += """addJava "-Dscala.repl.autoruncode=${app_home}/init.scala""""
bashScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/unicorn.conf""""
// native packager Docker plugin
enablePlugins(DockerPlugin)
dockerBaseImage := "dajobe/hbase"
packageName in Docker := "haifengl/unicorn"
dockerUpdateLatest := true
// BuildInfo
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "unicorn.shell"
buildInfoOptions += BuildInfoOption.BuildTime
libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.11.7"
libraryDependencies += "org.slf4j" % "slf4j-simple" % "1.7.18"