File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
sbt-scala3/src/dotty/tools/sbtplugin Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,14 @@ object DottyPlugin extends AutoPlugin {
35
35
36
36
// get latest nightly version from maven
37
37
def fetchSource (version : String ): (scala.io.BufferedSource , String ) =
38
- try Source .fromURL(s " https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_ $version/maven-metadata.xml " ) -> version
38
+ try {
39
+ val url =
40
+ if (version.startsWith(" 0" ))
41
+ s " https://repo1.maven.org/maven2/ch/epfl/lamp/dotty-compiler_ $version/maven-metadata.xml "
42
+ else
43
+ s " https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_ $version/maven-metadata.xml "
44
+ Source .fromURL(url) -> version
45
+ }
39
46
catch { case t : java.io.FileNotFoundException =>
40
47
val major :: minor :: Nil = version.split('.' ).toList
41
48
if (minor.toInt <= 0 ) throw t
You can’t perform that action at this time.
0 commit comments