@@ -36,12 +36,12 @@ object ExposedValues extends AutoPlugin {
36
36
37
37
object Build {
38
38
39
+ val baseVersion = " 0.5.0"
39
40
val scalacVersion = " 2.12.4"
40
41
41
42
val dottyOrganization = " ch.epfl.lamp"
42
43
val dottyGithubUrl = " https://github.com/lampepfl/dotty"
43
44
val dottyVersion = {
44
- val baseVersion = " 0.5.0"
45
45
val isNightly = sys.env.get(" NIGHTLYBUILD" ) == Some (" yes" )
46
46
val isRelease = sys.env.get(" RELEASEBUILD" ) == Some (" yes" )
47
47
if (isNightly)
@@ -307,6 +307,10 @@ object Build {
307
307
parallelExecution in Test := false ,
308
308
309
309
genDocs := Def .taskDyn {
310
+ // Make baseVersion available at dotty.epfl.ch/versions
311
+ // Used by sbt-dotty to resolve the latest nightly
312
+ IO .write(file(" ./docs/_site/versions" ), s " baseVersion= $baseVersion" )
313
+
310
314
val dottyLib = (packageAll in `dotty-compiler`).value(" dotty-library" )
311
315
val dottyInterfaces = (packageAll in `dotty-compiler`).value(" dotty-interfaces" )
312
316
val otherDeps = (dependencyClasspath in Compile ).value.map(_.data).mkString(" :" )
@@ -320,9 +324,9 @@ object Build {
320
324
" -project-url" , dottyGithubUrl,
321
325
" -classpath" , s " $dottyLib: $dottyInterfaces: $otherDeps"
322
326
)
323
- (runMain in Compile ).toTask(
324
- s """ dotty.tools.dottydoc.Main ${args.mkString(" " )} ${sources.mkString(" " )}"""
325
- )
327
+ (runMain in Compile ).toTask(
328
+ s """ dotty.tools.dottydoc.Main ${args.mkString(" " )} ${sources.mkString(" " )}"""
329
+ )
326
330
}.value,
327
331
328
332
dottydoc := Def .inputTaskDyn {
0 commit comments