-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
35 lines (33 loc) · 1.62 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.9"
lazy val akkaVersion = "2.6.19"
lazy val oauth2Version = "0.1.21"
ThisBuild / dynverVTagPrefix := false
lazy val root = (project in file("."))
.settings(
organization := "fun.zhongl",
scalaVersion := "2.13.12",
name := "passport",
scalafmtOnCompile := true,
scalacOptions += "-deprecation",
Compile / mainClass := Some("zhongl.passport.Main"),
Docker / maintainer := "zhong.lunfu@gmail.com",
dockerBaseImage := "openjdk:8-alpine",
dockerEnvVars := Map("DOCKER_HOST" -> "unix:///var/run/docker.sock"),
dockerExposedPorts := Seq(8080),
Docker / daemonUserUid := None,
Docker / daemonUser := "root",
dockerUsername := Some("zhongl"),
dockerUpdateLatest := true,
libraryDependencies ++= Seq(
"com.github.zhongl" %% "akka-stream-netty-all" % "0.1.17",
"com.github.scopt" %% "scopt" % "4.1.0",
"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.17" % Test,
"org.scalamock" %% "scalamock" % "5.2.0" % Test
)
)
.enablePlugins(JavaAppPackaging, AshScriptPlugin)