Skip to content

Commit d2d4d85

Browse files
authored
Merge pull request #492 from ckipp01/bumpMill
2 parents d582189 + e0383ba commit d2d4d85

File tree

3 files changed

+45
-13
lines changed

3 files changed

+45
-13
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lazy val V =
2424
def testcontainers = "0.39.3"
2525
def requests = "0.6.5"
2626
def minimalMillVersion = "0.10.0"
27-
def millScipVersion = "0.2.2"
27+
def millScipVersion = "0.2.3"
2828
}
2929

3030
inThisBuild(

tests/buildTools/src/test/scala/tests/MillBuildToolSuite.scala

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,47 @@ class MillBuildToolSuite extends BaseBuildToolSuite {
2727
List("./mill", "--version")
2828
}
2929

30-
List("0.10.0").foreach { version =>
30+
def scalaLibrary(scalaVersion: String) =
31+
if (scalaVersion.startsWith("3"))
32+
List(
33+
"maven:org.scala-lang:scala-library:2.13.8",
34+
"maven:org.scala-lang:scala3-library_3:3.1.3"
35+
).mkString("\n")
36+
else if (scalaVersion.startsWith("2.13"))
37+
"maven:org.scala-lang:scala-library:2.13.8"
38+
else if (scalaVersion.startsWith("2.12"))
39+
"maven:org.scala-lang:scala-library:2.12.16"
40+
else
41+
"idn fail, we don't cover this scala version"
42+
43+
def scalaBinaryVersion(scalaVersion: String) =
44+
if (scalaVersion.startsWith("3"))
45+
"3"
46+
else if (scalaVersion.startsWith("2.13"))
47+
"2.13"
48+
else if (scalaVersion.startsWith("2.12"))
49+
"2.12"
50+
else
51+
"idn fail, we don't cover this scala version"
52+
53+
val supportedMillVersions = List("0.10.0")
54+
val supportedScalaVersion = List("2.12.16", "2.13.8", "3.1.3")
55+
56+
val testGroupings =
57+
for {
58+
millVersion <- supportedMillVersions
59+
scalaVersion <- supportedScalaVersion
60+
} yield (millVersion, scalaVersion)
61+
62+
testGroupings.foreach { case (millVersion, scalaVersion) =>
3163
checkBuild(
32-
s"minimal",
64+
s"minimal-${millVersion}-${scalaVersion}",
3365
s"""|/.mill-version
34-
|${version}
66+
|${millVersion}
3567
|/build.sc
3668
|import mill._, scalalib._
3769
|object minimal extends ScalaModule {
38-
| def scalaVersion = "2.13.8"
70+
| def scalaVersion = "${scalaVersion}"
3971
| object test extends Tests with TestModule.Munit {
4072
| def ivyDeps = Agg(ivy"org.scalameta::munit:1.0.0-M6")
4173
| }
@@ -53,13 +85,13 @@ class MillBuildToolSuite extends BaseBuildToolSuite {
5385
|""".stripMargin,
5486
expectedSemanticdbFiles = 2,
5587
expectedPackages =
56-
"""|maven:junit:junit:4.13.2
57-
|maven:org.hamcrest:hamcrest-core:1.3
58-
|maven:org.scala-lang:scala-library:2.13.8
59-
|maven:org.scala-sbt:test-interface:1.0
60-
|maven:org.scalameta:junit-interface:1.0.0-M6
61-
|maven:org.scalameta:munit_2.13:1.0.0-M6
62-
|""".stripMargin,
88+
s"""|maven:junit:junit:4.13.2
89+
|maven:org.hamcrest:hamcrest-core:1.3
90+
|${scalaLibrary(scalaVersion)}
91+
|maven:org.scala-sbt:test-interface:1.0
92+
|maven:org.scalameta:junit-interface:1.0.0-M6
93+
|maven:org.scalameta:munit_${scalaBinaryVersion(scalaVersion)}:1.0.0-M6
94+
|""".stripMargin,
6395
initCommand = setupMill(),
6496
targetRoot = Some("out/io/kipp/mill/scip/Scip/generate.dest")
6597
)

website/pages/en/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const Features = (props) => {
101101
{
102102
title: "Multiple build tools",
103103
content:
104-
"The build tools Gradle, Maven and sbt are supported. We plan to add support for more build tools in the future.",
104+
"The build tools Gradle, Maven, Mill, and sbt are supported. We plan to add support for more build tools in the future.",
105105
image:
106106
"https://user-images.githubusercontent.com/1408093/137899144-cfc6fc1b-a7c0-4fd7-ac4b-be516e459123.png",
107107
imageAlign: "right",

0 commit comments

Comments
 (0)