-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sc
75 lines (59 loc) · 2.02 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
import $ivy.`com.github.lolgab::mill-crossplatform::0.2.4`
import $ivy.`io.github.quafadas::millSite::0.0.19`
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
import de.tobiasroeser.mill.vcs.version._
import com.github.lolgab.mill.crossplatform._
import mill._, mill.scalalib._, mill.scalajslib._, mill.scalanativelib._
import io.github.quafadas.millSite.SiteModule
import io.github.quafadas.millSite.QuickChange
import mill._, scalalib._, publish._
import mill.api.Result
trait Common extends ScalaModule with PublishModule {
def scalaVersion = "3.3.1"
override def ivyDeps = super.ivyDeps() ++ Agg(
ivy"com.lihaoyi::scalatags::0.12.0",
ivy"com.lihaoyi::os-lib:0.9.1"
)
def publishVersion = VcsVersion.vcsState().format()
override def pomSettings = T {
PomSettings(
description = "Automatically generate html tables from scala case classes",
organization = "io.github.quafadas",
url = "https://github.com/Quafadas/scautable",
licenses = Seq(License.`Apache-2.0`),
versionControl =
VersionControl.github("quafadas", "scautable"),
developers = Seq(
Developer("quafadas", "Simon Parten", "https://github.com/quafadas")
)
)
}
}
trait CommonJS extends ScalaJSModule {
def scalaJSVersion = "1.14.0"
}
trait CommonTests extends TestModule.Munit {
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.scalameta::munit::1.0.0-M10"
)
}
object scautable extends CrossPlatform {
trait Shared extends CrossPlatformScalaModule with Common {
// common `core` settings here
trait SharedTests extends CommonTests {
// common `core` test settings here
}
}
object jvm extends Shared {
// jvm specific settings here
object test extends ScalaTests with SharedTests
}
object js extends Shared with CommonJS {
// js specific settings here
object test extends ScalaJSTests with SharedTests
}
}
object site extends SiteModule {
def scalaVersion = scautable.jvm.scalaVersion
override def moduleDeps = Seq(scautable.jvm)
}