-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Default to Scala3doc #10762
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
Default to Scala3doc #10762
Conversation
@@ -362,7 +362,7 @@ object DottyPlugin extends AutoPlugin { | |||
|
|||
// Configuration for the doctool | |||
resolvers ++= (if(!useScala3doc.value) Nil else Seq(Resolver.jcenterRepo)), | |||
useScala3doc := false, | |||
useScala3doc := VersionNumber(scalaVersion.value).matchesSemVer(SemanticSelector(">=3.0.0-M3")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I haven't checked if the current version number is considered >= 3.0.0-M3
Alright, hold off on the reviews, I'll work on this tomorrow. We also need to check if we still can publish Dotty itself locally, I guess. |
7c0946b
to
0f2922b
Compare
0f2922b
to
0fd03ff
Compare
Because we're building sbt-dotty using sbt 1.4, we cannot guarantee that it works with older sbt versions (and in fact it doesn't), since this is a compatibility, we also bump the version number of sbt-dotty. Waiting for scala#10762 to be merged before releasing sbt-dotty 0.5.0.
useScala3doc := false, | ||
useScala3doc := { | ||
val v = scalaVersion.value | ||
v.startsWith("3.0.0") && !v.startsWith("3.0.0-M1") && !v.startsWith("3.0.0-M2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More future-proof:
v.startsWith("3.0.0") && !v.startsWith("3.0.0-M1") && !v.startsWith("3.0.0-M2") | |
v.startsWith("3") && !v.startsWith("3.0.0-M1") && !v.startsWith("3.0.0-M2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setting is going to disappear with 3.0.0, there's no need for this.
Default to
useScala3doc := true
.We should leave it there for now I guess for compat reasons.