-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.mill
More file actions
59 lines (47 loc) · 1.63 KB
/
Copy pathpackage.mill
File metadata and controls
59 lines (47 loc) · 1.63 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
package build.plugin
import mill.util.BuildInfo.{millVersion, millBinPlatform}
import mill.*, scalalib.*, publish.*
import mill.util.VcsVersion
import build.V
import build.FormatFixPublish
object `package` extends ScalaModule with FormatFixPublish:
def platformSuffix = s"_mill$millBinPlatform"
def scalaVersion = build.V.scalaVersion
def scalaArtefactVersion: Task[String] =
scalaVersion.map(_.split("\\.").take(2).mkString("."))
override def artifactName = "sjsls_plugin"
def mvnDeps = Task {
super.mvnDeps() ++
Seq(
V.millLibs,
mvn"co.fs2:fs2-io_3:${V.fs2}"
)
}
def moduleDeps = Seq(build.sjsls)
def artifactSuffix = s"${platformSuffix()}_${scalaArtefactVersion()}"
def publishVersion = VcsVersion.vcsState().format()
// def publishVersion = "DONTUSEME"
override def pomSettings = Task {
PomSettings(
description = "Mill plugin for mdoc, static site generation",
organization = "io.github.quafadas",
url = "https://github.com/Quafadas/millSite",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github("quafadas", "millSite"),
developers = Seq(
Developer("quafadas", "Simon Parten", "https://github.com/quafadas")
)
)
}
object test extends ScalaTests with TestModule.Munit:
def mvnDeps = super.mvnDeps() ++ Seq(
mvn"org.scalameta::munit::1.1.0"
)
end test
object integration extends ScalaTests with TestModule.Utest:
override def moduleDeps: Seq[JavaModule] = Seq(build.plugin)
def mvnDeps = Seq(
mvn"com.lihaoyi::mill-testkit::${millVersion}"
)
end integration
end `package`