@@ -34,13 +34,23 @@ object ExposedValues extends AutoPlugin {
34
34
}
35
35
36
36
object Build {
37
+ val scalacVersion = " 2.12.7"
37
38
38
39
val baseVersion = " 0.11.0"
39
- val scalacVersion = " 2.12.7"
40
+ val baseSbtDottyVersion = " 0.2.6"
41
+
42
+ // Versions used by the vscode extension to create a new project
43
+ // This should be the latest published releases.
44
+ // TODO: Have the vscode extension fetch these numbers from the Internet
45
+ // instead of hardcoding them ?
46
+ val publishedDottyVersion = " 0.11.0-bin-20181017-3253921-NIGHTLY" // Using a nightly for now to get worksheet support
47
+ val publishedSbtDottyVersion = " 0.2.5"
48
+
40
49
41
50
val dottyOrganization = " ch.epfl.lamp"
42
51
val dottyGithubUrl = " https://github.com/lampepfl/dotty"
43
52
53
+
44
54
val isRelease = sys.env.get(" RELEASEBUILD" ) == Some (" yes" )
45
55
46
56
val dottyVersion = {
@@ -56,8 +66,7 @@ object Build {
56
66
57
67
val sbtDottyName = " sbt-dotty"
58
68
val sbtDottyVersion = {
59
- val base = " 0.2.6"
60
- if (isRelease) base else base + " -SNAPSHOT"
69
+ if (isRelease) baseSbtDottyVersion else baseSbtDottyVersion + " -SNAPSHOT"
61
70
}
62
71
63
72
val agentOptions = List (
@@ -992,9 +1001,11 @@ object Build {
992
1001
resourceGenerators in Compile += Def .task {
993
1002
// Resources that will be copied when bootstrapping a new project
994
1003
val buildSbtFile = baseDirectory.value / " out" / " build.sbt"
995
- IO .write(buildSbtFile, s """ scalaVersion := " $dottyVersion" """ )
1004
+ IO .write(buildSbtFile,
1005
+ s """ scalaVersion := " $publishedDottyVersion" """ )
996
1006
val dottyPluginSbtFile = baseDirectory.value / " out" / " dotty-plugin.sbt"
997
- IO .write(dottyPluginSbtFile, s """ addSbtPlugin(" $dottyOrganization" % " $sbtDottyName" % " $sbtDottyVersion") """ )
1007
+ IO .write(dottyPluginSbtFile,
1008
+ s """ addSbtPlugin(" $dottyOrganization" % " $sbtDottyName" % " $publishedSbtDottyVersion") """ )
998
1009
Seq (buildSbtFile, dottyPluginSbtFile)
999
1010
},
1000
1011
compile in Compile := Def .task {
0 commit comments