@@ -86,10 +86,7 @@ object DottyJSPlugin extends AutoPlugin {
86
86
87
87
object Build {
88
88
import ScaladocConfigs ._
89
-
90
- val referenceVersion = " 3.4.2-RC1"
91
-
92
- val baseVersion = " 3.5.0-RC1"
89
+ import versionhelpers .DottyVersion ._
93
90
94
91
// LTS or Next
95
92
val versionLine = " Next"
@@ -158,24 +155,6 @@ object Build {
158
155
val dottyGithubUrl = " https://github.com/scala/scala3"
159
156
val dottyGithubRawUserContentUrl = " https://raw.githubusercontent.com/scala/scala3"
160
157
161
-
162
- val isRelease = sys.env.get(" RELEASEBUILD" ) == Some (" yes" )
163
-
164
- val dottyVersion = {
165
- def isNightly = sys.env.get(" NIGHTLYBUILD" ) == Some (" yes" )
166
- if (isRelease)
167
- baseVersion
168
- else if (isNightly)
169
- baseVersion + " -bin-" + VersionUtil .commitDate + " -" + VersionUtil .gitHash + " -NIGHTLY"
170
- else
171
- baseVersion + " -bin-SNAPSHOT"
172
- }
173
- val dottyNonBootstrappedVersion = {
174
- // Make sure sbt always computes the scalaBinaryVersion correctly
175
- val bin = if (! dottyVersion.contains(" -bin" )) " -bin" else " "
176
- dottyVersion + bin + " -nonbootstrapped"
177
- }
178
-
179
158
val sbtCommunityBuildVersion = " 0.1.0-SNAPSHOT"
180
159
181
160
val agentOptions = List (
@@ -625,7 +604,7 @@ object Build {
625
604
val contents = // 2.11.11.v20170413-090219-8a413ba7cc
626
605
s """ version.number= ${version.value}
627
606
|maven.version.number= ${version.value}
628
- |git.hash= ${VersionUtil .gitHash}
607
+ |git.hash= ${versionhelpers. VersionUtil .gitHash}
629
608
|copyright.string=Copyright 2002- $currentYear, LAMP/EPFL
630
609
""" .stripMargin
631
610
@@ -665,7 +644,7 @@ object Build {
665
644
// Spawn new JVM in run and test
666
645
667
646
// Add git-hash used to package the distribution to the manifest to know it in runtime and report it in REPL
668
- packageOptions += ManifestAttributes ((" Git-Hash" , VersionUtil .gitHash)),
647
+ packageOptions += ManifestAttributes ((" Git-Hash" , versionhelpers. VersionUtil .gitHash)),
669
648
670
649
javaOptions ++= {
671
650
val log = streams.value.log
@@ -2284,6 +2263,7 @@ object Build {
2284
2263
2285
2264
object ScaladocConfigs {
2286
2265
import Build ._
2266
+ import versionhelpers .DottyVersion ._
2287
2267
private lazy val currentYear : String = java.util.Calendar .getInstance().get(java.util.Calendar .YEAR ).toString
2288
2268
2289
2269
def dottyExternalMapping = " .*scala/.*::scaladoc3::https://dotty.epfl.ch/api/"
@@ -2363,7 +2343,7 @@ object ScaladocConfigs {
2363
2343
.add(UseJavacp (true ))
2364
2344
.add(ProjectName (" scaladoc" ))
2365
2345
.add(OutputDir (" scaladoc/output/self" ))
2366
- .add(Revision (VersionUtil .gitHash))
2346
+ .add(Revision (versionhelpers. VersionUtil .gitHash))
2367
2347
.add(ExternalMappings (List (dottyExternalMapping, javaExternalMapping)))
2368
2348
.withTargets((Compile / classDirectory).value.getAbsolutePath :: Nil )
2369
2349
}
0 commit comments