@@ -9,8 +9,9 @@ val scalaVersions = "2.12.13" :: "2.13.4" :: "3.0.0-RC1" :: dottyVersions
9
9
val scala2Versions = scalaVersions.filter(_.startsWith(" 2." ))
10
10
11
11
val scalaJSVersions = for {
12
- scalaV <- scala2Versions
12
+ scalaV <- scalaVersions
13
13
scalaJSV <- Seq (" 0.6.33" , " 1.4.0" )
14
+ if scalaV.startsWith(" 2." ) || scalaJSV.startsWith(" 1." )
14
15
} yield (scalaV, scalaJSV)
15
16
16
17
val scalaNativeVersions = for {
@@ -40,8 +41,8 @@ trait PPrintModule extends PublishModule {
40
41
trait PPrintMainModule extends CrossScalaModule {
41
42
def millSourcePath = super .millSourcePath / offset
42
43
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 "
45
46
)
46
47
def compileIvyDeps =
47
48
if (crossScalaVersion.startsWith(" 2" )) Agg (
@@ -122,15 +123,6 @@ object pprint extends Module {
122
123
object test extends Tests with PPrintTestModule {
123
124
val crossScalaVersion = JvmPPrintModule .this .crossScalaVersion
124
125
}
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
- }
134
126
}
135
127
136
128
object js extends Cross [JsPPrintModule ](scalaJSVersions:_* )
0 commit comments