-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
91 lines (78 loc) · 3.69 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name := "lila-ws"
version := "2.2"
lazy val `lila-ws` = (project in file("."))
.enablePlugins(JavaAppPackaging)
val akkaVersion = "2.6.14"
val kamonVersion = "2.1.18"
val nettyVersion = "4.1.63.Final"
val reactivemongoVersion = "1.0.4"
scalaVersion := "2.13.5"
libraryDependencies += "org.reactivemongo" %% "reactivemongo" % reactivemongoVersion
libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-api" % reactivemongoVersion
libraryDependencies += "org.reactivemongo" % "reactivemongo-shaded-native" % s"$reactivemongoVersion-linux-x86-64"
libraryDependencies += "io.lettuce" % "lettuce-core" % "6.1.2.RELEASE"
libraryDependencies += "io.netty" % "netty-handler" % nettyVersion
libraryDependencies += "io.netty" % "netty-codec-http" % nettyVersion
libraryDependencies += "io.netty" % "netty-transport-native-epoll" % nettyVersion classifier "linux-x86_64"
libraryDependencies += "org.playstrategy" %% "strategygames" % "10.2.1-pstrat147"
libraryDependencies += "com.typesafe.akka" %% "akka-actor-typed" % akkaVersion
libraryDependencies += "com.typesafe.akka" %% "akka-slf4j" % akkaVersion
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.3"
libraryDependencies += "joda-time" % "joda-time" % "2.10.10"
libraryDependencies += "com.github.blemale" %% "scaffeine" % "4.0.2" % "compile"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
libraryDependencies += "com.typesafe.play" %% "play-json" % "2.9.2"
libraryDependencies += "io.kamon" %% "kamon-core" % kamonVersion
libraryDependencies += "io.kamon" %% "kamon-influxdb" % kamonVersion
libraryDependencies += "io.kamon" %% "kamon-system-metrics" % kamonVersion
libraryDependencies += "com.softwaremill.macwire" %% "macros" % "2.3.7" % "provided"
libraryDependencies += "com.roundeights" %% "hasher" % "1.2.1"
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
resolvers += "lila-maven" at "https://raw.githubusercontent.com/Mind-Sports-Games/lila-maven/master"
val localMaven = sys.env
.get("LILA_MAVEN_RESOLVERS")
.map(_.split(",").zipWithIndex.map { case (x, i) => s"local-maven-$i" at x })
.map(_.toSeq)
.getOrElse(Seq())
resolvers ++= localMaven
scalacOptions ++= Seq(
"-explaintypes",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-Ymacro-annotations",
// Warnings as errors!
// "-Xfatal-warnings",
// Linting options
"-unchecked",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:constant",
"-Xlint:delayedinit-select",
"-Xlint:deprecation",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:missing-interpolator",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Wdead-code",
"-Wextra-implicit",
"-Wnumeric-widen",
"-Wunused:imports",
"-Wunused:locals",
"-Wunused:patvars",
"-Wunused:privates",
"-Wunused:implicits",
"-Wunused:params"
/* "-Wvalue-discard" */
)
javaOptions ++= Seq("-Xms32m", "-Xmx128m")
Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false
/* scalafmtOnCompile := true */