Skip to content

Commit 8da5718

Browse files
authored
Merge pull request #57 from com-lihaoyi/scala-js-scala3
Support Scala 3 on Scala.js
2 parents 89252ec + 3c2aadf commit 8da5718

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

build.sc

+4-12
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ val scalaVersions = "2.12.13" :: "2.13.4" :: "3.0.0-RC1" :: dottyVersions
99
val scala2Versions = scalaVersions.filter(_.startsWith("2."))
1010

1111
val scalaJSVersions = for {
12-
scalaV <- scala2Versions
12+
scalaV <- scalaVersions
1313
scalaJSV <- Seq("0.6.33", "1.4.0")
14+
if scalaV.startsWith("2.") || scalaJSV.startsWith("1.")
1415
} yield (scalaV, scalaJSV)
1516

1617
val scalaNativeVersions = for {
@@ -40,8 +41,8 @@ trait PPrintModule extends PublishModule {
4041
trait PPrintMainModule extends CrossScalaModule {
4142
def millSourcePath = super.millSourcePath / offset
4243
def ivyDeps = Agg(
43-
ivy"com.lihaoyi::fansi::0.2.10",
44-
ivy"com.lihaoyi::sourcecode::0.2.3"
44+
ivy"com.lihaoyi::fansi::0.2.11",
45+
ivy"com.lihaoyi::sourcecode::0.2.4"
4546
)
4647
def compileIvyDeps =
4748
if (crossScalaVersion.startsWith("2")) Agg(
@@ -122,15 +123,6 @@ object pprint extends Module {
122123
object test extends Tests with PPrintTestModule{
123124
val crossScalaVersion = JvmPPrintModule.this.crossScalaVersion
124125
}
125-
126-
override def docJar =
127-
if (crossScalaVersion.startsWith("2")) super.docJar
128-
else T {
129-
val outDir = T.ctx().dest
130-
val javadocDir = outDir / 'javadoc
131-
os.makeDir.all(javadocDir)
132-
mill.api.Result.Success(mill.modules.Jvm.createJar(Agg(javadocDir))(outDir))
133-
}
134126
}
135127

136128
object js extends Cross[JsPPrintModule](scalaJSVersions:_*)

mill

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This is a wrapper script, that automatically download mill from GitHub release pages
44
# You can give the required mill version with MILL_VERSION env variable
55
# If no version is given, it falls back to the value of DEFAULT_MILL_VERSION
6-
DEFAULT_MILL_VERSION=0.9.4-29-9d1d6f
6+
DEFAULT_MILL_VERSION=0.9.5-52-ef6d5d
77

88
set -e
99

0 commit comments

Comments
 (0)