-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.sc
More file actions
43 lines (36 loc) · 1.07 KB
/
build.sc
File metadata and controls
43 lines (36 loc) · 1.07 KB
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 $ivy.`com.lihaoyi::mill-contrib-bloop:$MILL_VERSION`
import $ivy.`com.lihaoyi::mill-contrib-buildinfo:$MILL_VERSION`
import mill.contrib.buildinfo.BuildInfo
import mill._
import scalalib._
object app extends ScalaModule with BuildInfo {
def scalaVersion = "3.0.2"
def appName = "Elastic Notepad"
def appVersion = "1.9.0"
val filename = "elastic-notepad.jar"
override def buildInfoMembers: T[Map[String, String]] = T {
Map(
"appName" -> appName,
"appVersion" -> appVersion
)
}
override def unmanagedClasspath = T {
if (!os.exists(millSourcePath / "lib")) Agg()
else Agg.from(os.list(millSourcePath / "lib").map(PathRef(_)))
}
override def assembly = T {
val path = T.ctx().dest / filename
os.move(super.assembly().path, path)
PathRef(path)
}
def ivyDeps = Agg(
ivy"com.formdev:flatlaf:2.0.2",
ivy"org.scala-lang.modules::scala-swing:3.0.0",
)
object test extends Tests {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.2.11",
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
}