-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
35 lines (33 loc) · 1.54 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
lazy val akkaHttpVersion = "10.2.4"
lazy val akkaVersion = "2.6.14"
lazy val oauth2Version = "0.1.13"
ThisBuild / dynverVTagPrefix := false
lazy val root = (project in file("."))
.settings(
organization := "fun.zhongl",
scalaVersion := "2.13.4",
name := "passport",
scalafmtOnCompile := true,
scalacOptions += "-deprecation",
mainClass in Compile := Some("zhongl.passport.Main"),
maintainer in Docker := "zhong.lunfu@gmail.com",
dockerBaseImage := "openjdk:8-alpine",
dockerEnvVars := Map("DOCKER_HOST" -> "unix:///var/run/docker.sock"),
dockerExposedPorts := Seq(8080),
daemonUserUid in Docker := None,
daemonUser in Docker := "root",
dockerUsername := Some("zhongl"),
dockerUpdateLatest := true,
libraryDependencies ++= Seq(
"com.github.zhongl" %% "akka-stream-netty-all" % "0.1.9",
"com.github.scopt" %% "scopt" % "4.0.1",
"com.github.zhongl" %% "akka-stream-oauth2-dingtalk" % oauth2Version,
"com.github.zhongl" %% "akka-stream-oauth2-wechat" % oauth2Version,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
"org.scalatest" %% "scalatest" % "3.2.9" % Test,
"org.scalamock" %% "scalamock" % "5.1.0" % Test
)
)
.enablePlugins(JavaAppPackaging, AshScriptPlugin)