-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sc
43 lines (37 loc) · 987 Bytes
/
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
import mill._, scalalib._
object bencode extends ScalaModule {
def scalaVersion = "2.12.8"
def ivyDeps = Agg(
ivy"org.scodec::core:1.10.4",
ivy"com.monovore::decline:0.5.0",
ivy"com.lihaoyi::pprint:0.5.5",
ivy"org.typelevel::cats-core:1.6.1"
)
object test extends Tests {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.0.5"
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
def scalacOptions = List(
"-language:higherKinds",
"-Ypartial-unification"
)
}
object bittorrent extends Module {
def moduleDeps = List(bencode)
def ivyDeps = Agg(
ivy"org.typelevel::cats-core:1.6.1",
ivy"com.github.bigwheel::util-backports:1.1"
)
object test extends TestModule
}
trait Module extends ScalaModule {
def scalaVersion = "2.12.8"
trait TestModule extends Tests {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.0.5"
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
}