-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.mill
35 lines (32 loc) · 925 Bytes
/
build.mill
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
import mill._
import mill.scalalib._
import $ivy.`com.goyeau::mill-scalafix::0.4.2`
object Deps {
val scalaVersion = "2.13.15"
}
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.10",
ivy"eu.timepit::refined:0.11.3", // huh
ivy"ch.epfl.scala:bsp4j:2.1.1",
ivy"io.circe::circe-generic:0.14.10",
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"
)
}