-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sc
44 lines (31 loc) · 1.16 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
import $meta._
import mill._
import mill.scalalib._
import $ivy.`com.mchange::untemplate-mill:0.1.4`
import untemplate.mill._
val UnstaticVersion = "0.3.3-SNAPSHOT"
object Dependency {
val Unstatic = ivy"com.mchange::unstatic:${UnstaticVersion}"
val UnstaticZTapir = ivy"com.mchange::unstatic-ztapir:${UnstaticVersion}"
}
object tech extends RootModule with UntemplateModule {
override def scalaVersion = "3.3.3"
// we'll build an index!
override def untemplateIndexNameFullyQualified : Option[String] = Some("com.interfluidity.tech.IndexedUntemplates")
override def untemplateSelectCustomizer: untemplate.Customizer.Selector = { key =>
var out = untemplate.Customizer.empty
out = out.copy(extraImports=Seq("com.interfluidity.tech.*","com.interfluidity.tech.TechSite.MainBlog","unstatic.*","unstatic.ztapir.simple.UpdateRecord"))
// to customize, examine key and modify the customer
// with out = out.copy=...
//
// e.g. out = out.copy(extraImports=Seq("cominterfluiditytech.*"))
out
}
override def ivyDeps = T {
super.ivyDeps() ++
Agg (
Dependency.Unstatic,
Dependency.UnstaticZTapir,
) // Agg
}
}