@@ -13,7 +13,15 @@ trait DottyBuild { this: BuildCommons =>
13
13
14
14
// List of available night build at https://repo1.maven.org/maven2/ch/epfl/lamp/dotty-compiler_0.14/
15
15
// lazy val dottyVersion = dottyLatestNightlyBuild.get
16
- lazy val dottyVersion = " 0.23.0-RC1"
16
+ lazy val dottyVersion = " 0.24.0-bin-20200324-6cd3a9d-NIGHTLY"
17
+ // lazy val dottyVersion = "0.23.0-RC1"
18
+ private lazy val customBuildVersion = version := {
19
+ val isDottyNightly = dottyVersion.length > 10 // // "0.xx.0-bin".length
20
+ val suffix =
21
+ if (isDottyNightly) " -dotty" + dottyVersion.substring(10 )
22
+ else " "
23
+ s " 3.1.1 $suffix"
24
+ }
17
25
lazy val dottySettings = List (
18
26
scalaVersion := dottyVersion,
19
27
libraryDependencies := libraryDependencies.value.map(_.withDottyCompat(scalaVersion.value)),
@@ -28,7 +36,7 @@ trait DottyBuild { this: BuildCommons =>
28
36
.settings(
29
37
projectTitle := " Scalactic" ,
30
38
organization := " com.sandinh" ,
31
- version := " 3.1.1-dottybug8581 " ,
39
+ customBuildVersion ,
32
40
moduleName := " scalactic" ,
33
41
initialCommands in console := " import org.scalactic._" ,
34
42
sourceGenerators in Compile += {
@@ -86,6 +94,7 @@ trait DottyBuild { this: BuildCommons =>
86
94
.settings(
87
95
projectTitle := " ScalaTest" ,
88
96
organization := " com.sandinh" ,
97
+ customBuildVersion,
89
98
moduleName := " scalatest" ,
90
99
initialCommands in console := """ |import org.scalatest._
91
100
|import org.scalactic._
0 commit comments