forked from lichess-org/scalachess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (50 loc) · 2.26 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
lazy val scalachess = Project("scalachess", file(".")).settings(
name := "scalachess",
libraryDependencies ++= List(
"org.specs2" %% "specs2-core" % "4.20.0" % Test,
"org.specs2" %% "specs2-cats" % "4.20.0" % Test,
"org.scalameta" %% "munit" % "1.0.0-M7" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test,
"org.scalameta" %% "munit-scalacheck" % "1.0.0-M7" % Test,
"com.github.lenguyenthanh" % "compression" % "aacf55bea2" % Test, // a fork of lichess compression which public everything so we can use it for testing.
"com.disneystreaming" %% "weaver-cats" % "0.8.3" % Test,
"com.disneystreaming" %% "weaver-scalacheck" % "0.8.3" % Test,
"co.fs2" %% "fs2-core" % "3.7.0" % Test,
"co.fs2" %% "fs2-io" % "3.7.0" % Test,
"org.typelevel" %% "discipline-munit" % "1.0.9" % Test,
"org.typelevel" %% "cats-laws" % "2.9.0" % Test,
"com.github.ornicar" %% "scalalib" % "9.3.8",
"org.typelevel" %% "cats-core" % "2.9.0",
"org.typelevel" %% "alleycats-core" % "2.9.0",
"org.typelevel" %% "cats-parse" % "0.3.9",
"dev.optics" %% "monocle-core" % "3.2.0",
"org.typelevel" %% "kittens" % "3.0.0"
),
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
scalacOptions := Seq(
"-encoding",
"utf-8",
// "-rewrite",
"-source:future-migration",
"-indent",
"-explaintypes",
"-feature",
"-language:postfixOps",
"-Xtarget:12",
"-Wunused:all"
// "-Werror"
// Warnings as errors!
/* "-Xfatal-warnings" */
)
)
ThisBuild / organization := "org.lichess"
ThisBuild / version := "15.2.8"
ThisBuild / scalaVersion := "3.3.0"
ThisBuild / licenses += "MIT" -> url("https://opensource.org/licenses/MIT")
resolvers += "lila-maven" at "https://raw.githubusercontent.com/ornicar/lila-maven/master"
resolvers += "jitpack" at "https://jitpack.io"
publishTo := Option(Resolver.file("file", new File(sys.props.getOrElse("publishTo", ""))))
lazy val bench = project
.enablePlugins(JmhPlugin)
.settings(name := "bench")
.dependsOn(scalachess, scalachess % "compile->test")