-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sc
59 lines (51 loc) · 1.5 KB
/
build.sc
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
import mill._, scalalib._, scalafmt.ScalafmtModule
object bencode extends Module {
def ivyDeps = Agg(
ivy"org.scodec::core:1.10.4",
ivy"org.typelevel::cats-core:1.6.1",
)
object test extends TestModule
}
object bittorrent extends Module {
def moduleDeps = List(bencode)
def ivyDeps = Agg(
ivy"org.typelevel::cats-effect::1.3.1",
ivy"org.typelevel::cats-mtl-core:0.4.0",
ivy"com.olegpy::meow-mtl:0.2.0",
ivy"io.github.timwspence::cats-stm:0.4.0",
ivy"co.fs2::fs2-io:1.0.4",
ivy"io.chrisdavenport::log4cats-slf4j:0.3.0",
ivy"com.github.julien-truffaut::monocle-core:${Versions.monocle}",
ivy"com.github.julien-truffaut::monocle-macro:${Versions.monocle}",
ivy"com.github.bigwheel::util-backports:1.1",
)
object test extends TestModule
}
object cli extends Module {
def moduleDeps = List(bittorrent)
def ivyDeps = Agg(
ivy"com.monovore::decline:0.5.0",
ivy"ch.qos.logback:logback-classic:1.2.3",
ivy"com.lihaoyi::pprint:0.5.5",
)
}
trait Module extends ScalaModule with ScalafmtModule {
def scalaVersion = "2.12.8"
def scalacOptions = List(
"-language:higherKinds",
"-Ypartial-unification",
)
def scalacPluginIvyDeps = Agg(
ivy"com.olegpy::better-monadic-for:0.3.0",
ivy"org.typelevel::kind-projector:0.10.3",
)
trait TestModule extends Tests {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.0.5",
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
}
object Versions {
val monocle = "1.5.0"
}