-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.mill
More file actions
66 lines (55 loc) · 1.91 KB
/
Copy pathbuild.mill
File metadata and controls
66 lines (55 loc) · 1.91 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//| mill-version: 1.0.6
//| mvnDeps: ["com.lihaoyi::mill-contrib-jmh:$MILL_VERSION"]
import mill.*, scalalib.*, scalafmt.*, publish.*, scalanativelib.*
val scala3 = "3.8.2"
val scalaNative = "0.5.9"
trait Publish extends PublishModule:
def publishVersion = "0.9.2"
def pomSettings = PomSettings(
description = "Simple metrics collection",
organization = "io.crashbox",
url = "https://github.com/jodersky/ustats",
licenses = Seq(License.`BSD-3-Clause`),
versionControl = VersionControl.github("jodersky", "ustats"),
developers = Seq(
Developer("jodersky", "Jakob Odersky", "https://github.com/jodersky")
)
)
trait Utest extends ScalaModule with TestModule:
def mvnDeps = Seq(mvn"com.lihaoyi::utest::0.9.4")
def testFramework = "utest.runner.Framework"
trait UstatsModule
extends ScalaModule
with ScalafmtModule
with Publish:
def scalaVersion = scala3
def artifactName = "ustats"
def mvnDeps = Seq(
mvn"com.lihaoyi::geny::1.1.1"
)
def scalacOptions = Seq(
"-deprecation",
"-feature",
"-unchecked",
"-explain",
"-release", "21"
)
object ustats extends Module:
object jvm extends UstatsModule:
def moduleDir = super.moduleDir / os.up
def sourcesFolders = Seq("src", "src-jvm")
object test extends ScalaTests with Utest:
def sourcesFolders = Seq("src", "src-jvm")
object native extends UstatsModule with ScalaNativeModule:
def scalaNativeVersion = scalaNative
def moduleDir = super.moduleDir / os.up
def sourcesFolders = Seq("src", "src-native")
object test extends ScalaNativeTests with Utest
object server extends ScalaModule with Publish:
def scalaVersion = scala3
def moduleDeps = Seq(ustats.jvm)
object test extends ScalaTests with Utest
object benchmark extends ScalaModule with mill.contrib.jmh.JmhModule:
def scalaVersion = scala3
def moduleDeps = Seq(ustats.jvm)
def jmhCoreVersion = "1.37"