Skip to content

Commit 7a84bb9

Browse files
Merge branch 'dotty-mill' of https://github.com/dotty-staging/sourcecode into dotty-mill
2 parents a18d9db + 49c20bd commit 7a84bb9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.sc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ trait SourcecodeTestModule extends ScalaModule {
6565

6666
object sourcecode extends Module {
6767
val dottyVersion = Option(sys.props("dottyVersion"))
68-
object jvm extends Cross[JvmSourcecodeModule]((List("2.11.12", "2.12.8", "2.13.0") ++ "0.21.0-bin-SNAPSHOT"): _*)
68+
object jvm extends Cross[JvmSourcecodeModule]((List("2.11.12", "2.12.8", "2.13.0") ++ dottyVersion): _*)
6969
class JvmSourcecodeModule(val crossScalaVersion: String)
7070
extends SourcecodeMainModule with ScalaModule with SourcecodeModule {
7171

@@ -74,6 +74,13 @@ object sourcecode extends Module {
7474
def moduleDeps = Seq(JvmSourcecodeModule.this)
7575
val crossScalaVersion = JvmSourcecodeModule.this.crossScalaVersion
7676
}
77+
78+
override def docJar = T {
79+
val outDir = T.ctx().dest
80+
val javadocDir = outDir / 'javadoc
81+
os.makeDir.all(javadocDir)
82+
mill.api.Result.Success(mill.modules.Jvm.createJar(Agg(javadocDir))(outDir))
83+
}
7784
}
7885

7986
object js extends Cross[JsSourcecodeModule](

0 commit comments

Comments
 (0)