-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.sbt
68 lines (64 loc) · 1.68 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
58
59
60
61
62
63
64
65
66
67
68
import Dependencies.*
import org.typelevel.scalacoptions.ScalacOptions
inThisBuild(
Seq(
scalaVersion := "3.6.2",
versionScheme := Some("early-semver"),
run / fork := true,
run / javaOptions += "-Dconfig.override_with_env_vars=true",
semanticdbEnabled := true, // for scalafix
dockerBaseImage := "openjdk:21",
dockerUpdateLatest := true
)
)
lazy val app = project
.in(file("app"))
.settings(
name := "lila-fishnet",
organization := "org.lichess",
tpolecatScalacOptions ++= Set(
ScalacOptions.sourceFuture,
ScalacOptions.other("-rewrite"),
ScalacOptions.other("-indent"),
ScalacOptions.explain,
ScalacOptions.release("21"),
ScalacOptions.other("-Wsafe-init") // fix in: https://github.com/typelevel/scalac-options/pull/136
),
resolvers ++= Seq(Dependencies.lilaMaven),
libraryDependencies ++= Seq(
catsCore,
catsEffect,
chess,
circeCore,
cirisCore,
cirisHtt4s,
http4sCirce,
http4sDsl,
http4sServer,
kamonCore,
kamonInflux,
kamonSystemMetrics,
log4Cats,
logback,
redis,
circeLiteral,
chessTestKit,
weaver,
weaverScalaCheck,
testContainers,
http4sClient,
catsEffectTestKit
),
Docker / packageName := "lichess-org/lila-fishnet",
Docker / maintainer := "lichess.org",
Docker / dockerRepository := Some("ghcr.io")
)
.enablePlugins(JavaAppPackaging, DockerPlugin)
lazy val root = project
.in(file("."))
.aggregate(app)
addCommandAlias("prepare", "scalafixAll; scalafmtAll")
addCommandAlias(
"check",
"; scalafixAll --check ; scalafmtCheckAll"
)