File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ trait SourcecodeTestModule extends ScalaModule {
65
65
66
66
object sourcecode extends Module {
67
67
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 ): _* )
69
69
class JvmSourcecodeModule (val crossScalaVersion : String )
70
70
extends SourcecodeMainModule with ScalaModule with SourcecodeModule {
71
71
@@ -74,6 +74,13 @@ object sourcecode extends Module {
74
74
def moduleDeps = Seq (JvmSourcecodeModule .this )
75
75
val crossScalaVersion = JvmSourcecodeModule .this .crossScalaVersion
76
76
}
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
+ }
77
84
}
78
85
79
86
object js extends Cross [JsSourcecodeModule ](
You can’t perform that action at this time.
0 commit comments