Skip to content

Upgrade to Scala 3.0.0-RC1 #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import de.tobiasroeser.mill.vcs.version.VcsVersion

val dottyVersions = sys.props.get("dottyVersion").toList

val scalaVersions = "2.12.13" :: "2.13.4" :: "3.0.0-M3" :: dottyVersions
val scalaVersions = "2.12.13" :: "2.13.4" :: "3.0.0-RC1" :: dottyVersions
val scala2Versions = scalaVersions.filter(_.startsWith("2."))

val scalaJSVersions = for {
Expand Down Expand Up @@ -102,7 +102,16 @@ trait OsLibModule extends CrossScalaModule with PublishModule{
def compileIvyDeps = acyclicDep
def scalacOptions = T { if (!isDotty) Seq("-P:acyclic:force") else Seq.empty }
def scalacPluginIvyDeps = acyclicDep

// FIXME: scaladoc 3 is not supported by mill yet. Remove the override
// once it is.
override def docJar =
if (crossScalaVersion.startsWith("2")) super.docJar
else T {
val outDir = T.ctx().dest
val javadocDir = outDir / 'javadoc
_root_.os.makeDir.all(javadocDir)
mill.api.Result.Success(mill.modules.Jvm.createJar(Agg(javadocDir))(outDir))
}
}

trait OsLibTestModule extends ScalaModule with TestModule{
Expand Down