-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sc
34 lines (31 loc) · 876 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
import mill._
import mill.scalalib._
object Deps {
val scalaVersion = "2.13.12"
}
object hello extends ScalaModule {
override def scalaVersion = Deps.scalaVersion
override def generatedSources = T {
val hello = s"""
|package hello
|object Hello {
| def main(args: Array[String]): Unit = {
| println("Hello there!")
| println("Mill version:")
| }
|}
""".stripMargin
os.write(T.dest / "hello" / "hello.scala", hello, createFolders = true)
Seq(PathRef(T.dest))
}
def ivyDeps = Agg(
ivy"io.circe::circe-core:0.14.6",
ivy"eu.timepit::refined:0.11.0", // huh
ivy"ch.epfl.scala:bsp4j:2.1.1",
ivy"io.circe::circe-generic:0.14.6",
ivy"javax.jms:javax.jms-api:2.0.1",
ivy"activemq:activemq:4.0-M3",
ivy"io.circe::circe-fs2:0.14.1",
ivy"io.circe::circe-config:0.10.1"
)
}