-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sc
80 lines (63 loc) · 2.72 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import mill._, scalalib._, publish._
trait LiquiriumModule extends ScalaModule {
def scalaVersion = "2.13.15"
}
object liquirium extends LiquiriumModule with PublishModule {
val akkaVersion = "2.6.10"
val http4sVersion = "0.23.29"
override def ivyDeps = Agg(
ivy"org.joda:joda-convert:1.8.3",
ivy"com.typesafe.play::play-json:2.9.4",
ivy"org.scalaj::scalaj-http:2.4.2",
ivy"com.typesafe.scala-logging::scala-logging:3.9.2",
ivy"ch.qos.logback:logback-classic:1.2.3",
ivy"com.h2database:h2:2.2.222",
ivy"com.typesafe.akka::akka-actor:$akkaVersion",
ivy"com.typesafe.akka::akka-actor-typed:$akkaVersion",
ivy"com.typesafe.akka::akka-stream:$akkaVersion",
ivy"com.typesafe.akka::akka-stream-typed:$akkaVersion",
ivy"com.typesafe.akka::akka-slf4j:$akkaVersion",
ivy"com.typesafe.akka::akka-http:10.2.2",
ivy"org.typelevel::cats-effect:3.5.5",
ivy"org.http4s::http4s-ember-client::$http4sVersion",
ivy"org.http4s::http4s-dsl::$http4sVersion",
)
override def publishVersion = "0.2.1"
override def pomSettings = PomSettings(
description = "Functional framework for automated trading.",
organization = "io.liquirium",
url = "https://github.com/lexmuc/liquirium",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github(owner = "lexmuc", repo = "liquirium"),
developers = Seq(Developer(id = "lexmuc", name = "Alexander Steinhoff", url = "https://github.com/lexmuc")),
)
object test extends ScalaTests with TestModule.ScalaTest with PublishModule {
override def ivyDeps = Agg(
ivy"org.scalactic::scalactic:3.2.17",
ivy"org.scalatest::scalatest:3.2.17",
ivy"org.mockito:mockito-core:5.14.2",
ivy"com.typesafe.akka::akka-stream-testkit:$akkaVersion",
ivy"com.typesafe.akka::akka-actor-testkit-typed:$akkaVersion",
)
// this module is published to make the test helpers available in other projects
override def pomSettings = PomSettings(
description = "Liquirium test helpers.",
organization = "io.liquirium",
url = "https://github.com/lexmuc/liquirium",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github(owner = "lexmuc", repo = "liquirium"),
developers = Seq(Developer(id = "lexmuc", name = "Alexander Steinhoff", url = "https://github.com/lexmuc")),
)
override def publishVersion = "0.2.1"
override def artifactName: T[String] = "liquirium-test"
}
}
object `liquirium-examples` extends LiquiriumModule {
override def moduleDeps = Seq(liquirium)
def runSimulation = T {
runMain("io.liquirium.examples.simulation.RunSimulation")
}
def runTicker = T {
runMain("io.liquirium.examples.ticker.CandleBasedPriceTicker")
}
}