We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98a319a + 00e3c4b commit c7a27d1Copy full SHA for c7a27d1
project/Build.scala
@@ -99,7 +99,12 @@ object Build {
99
/** Final version of Scala compiler, controlled by environment variables. */
100
val dottyVersion = {
101
if (isRelease) baseVersion
102
- else if (isNightly) s"${baseVersion}-bin-${VersionUtil.commitDate}-${VersionUtil.gitHash}-NIGHTLY"
+ else if (isNightly) {
103
+ val formatter = java.time.format.DateTimeFormatter.ofPattern("yyyyMMdd")
104
+ val currentDate =
105
+ formatter.format(java.time.ZonedDateTime.now(java.time.ZoneId.of("UTC")))
106
+ s"${baseVersion}-bin-${currentDate}-${VersionUtil.gitHash}-NIGHTLY"
107
+ }
108
else s"${baseVersion}-bin-SNAPSHOT"
109
}
110
def isRelease = sys.env.get("RELEASEBUILD").contains("yes")
0 commit comments