-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sc
37 lines (31 loc) · 1.65 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
import $ivy.`de.tototec::de.tobiasroeser.mill.integrationtest::0.7.1`
import de.tobiasroeser.mill.integrationtest._
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
import de.tobiasroeser.mill.vcs.version.VcsVersion
import mill._
import mill.scalalib._
import mill.scalalib.api.Util.scalaNativeBinaryVersion
import publish._
val millVersions = Seq("0.10.11", "0.11.2")
def millBinaryVersion(millVersion: String) = scalaNativeBinaryVersion(millVersion)
object `mill-tpolecat` extends Cross[MillTpolecatCross](millVersions: _*)
class MillTpolecatCross(millVersion: String) extends CrossModuleBase with PublishModule {
override def crossScalaVersion = "2.13.13"
override def artifactSuffix = s"_mill${millBinaryVersion(millVersion)}" + super.artifactSuffix()
def compileIvyDeps = Agg(ivy"com.lihaoyi::mill-scalalib:$millVersion")
def publishVersion: T[String] = VcsVersion.vcsState().format()
def pomSettings = PomSettings(
description = "scalac options for the enlightened",
organization = "io.github.davidgregory084",
url = "https://github.com/DavidGregory084/mill-tpolecat",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github("DavidGregory084", "mill-tpolecat"),
developers = Seq(Developer("DavidGregory084", "David Gregory", "https://github.com/DavidGregory084"))
)
}
object itest extends Cross[ITestCross](millVersions: _*)
class ITestCross(millVersion: String) extends MillIntegrationTestModule {
override def millSourcePath = super.millSourcePath / os.up
override def millTestVersion = millVersion
override def pluginsUnderTest = Seq(`mill-tpolecat`(millVersion))
}