@@ -95,8 +95,8 @@ object Build {
95
95
* Reference version should track the latest version pushed to Maven:
96
96
* - In main branch it should be the last RC version
97
97
* - In release branch it should be the last stable release
98
- *
99
- * Warning: Change of this variable needs to be consulted with `expectedTastyVersion`
98
+ *
99
+ * Warning: Change of this variable needs to be consulted with `expectedTastyVersion`
100
100
*/
101
101
val referenceVersion = " 3.6.3-RC1"
102
102
@@ -106,8 +106,8 @@ object Build {
106
106
*
107
107
* Should only be referred from `dottyVersion` or settings/tasks requiring simplified version string,
108
108
* eg. `compatMode` or Windows native distribution version.
109
- *
110
- * Warning: Change of this variable might require updating `expectedTastyVersion`
109
+ *
110
+ * Warning: Change of this variable might require updating `expectedTastyVersion`
111
111
*/
112
112
val developedVersion = " 3.6.4"
113
113
@@ -119,13 +119,13 @@ object Build {
119
119
* During final, stable release is set exactly to `developedVersion`.
120
120
*/
121
121
val baseVersion = s " $developedVersion-RC1 "
122
-
123
- /** The version of TASTY that should be emitted, checked in runtime test
124
- * For defails on how TASTY version should be set see related discussions:
122
+
123
+ /** The version of TASTY that should be emitted, checked in runtime test
124
+ * For defails on how TASTY version should be set see related discussions:
125
125
* - https://github.com/scala/scala3/issues/13447#issuecomment-912447107
126
126
* - https://github.com/scala/scala3/issues/14306#issuecomment-1069333516
127
127
* - https://github.com/scala/scala3/pull/19321
128
- *
128
+ *
129
129
* Simplified rules, given 3.$minor.$patch = $developedVersion
130
130
* - Major version is always 28
131
131
* - TASTY minor version:
@@ -1447,7 +1447,7 @@ object Build {
1447
1447
1448
1448
lazy val `scala3-presentation-compiler` = project.in(file(" presentation-compiler" ))
1449
1449
.withCommonSettings(Bootstrapped )
1450
- .dependsOn(`scala3-compiler-bootstrapped`, `scala3-library-bootstrapped`, `scala3-presentation-compiler-testcases`)
1450
+ .dependsOn(`scala3-compiler-bootstrapped`, `scala3-library-bootstrapped`, `scala3-presentation-compiler-testcases` % " test->test " )
1451
1451
.settings(presentationCompilerSettings)
1452
1452
.settings(scala3PresentationCompilerBuildInfo)
1453
1453
.settings(
@@ -2505,7 +2505,7 @@ object Build {
2505
2505
case Bootstrapped => commonBootstrappedSettings
2506
2506
})
2507
2507
}
2508
-
2508
+
2509
2509
/* Tests TASTy version invariants during NIGHLY, RC or Stable releases */
2510
2510
def checkReleasedTastyVersion (): Unit = {
2511
2511
lazy val (scalaMinor, scalaPatch, scalaIsRC) = baseVersion.split(" \\ .|-" ).take(4 ) match {
@@ -2518,19 +2518,19 @@ object Build {
2518
2518
case Array (" 28" , minor, " experimental" , _) => (minor.toInt, true )
2519
2519
case other => sys.error(s " Invalid TASTy version string: $expectedTastyVersion" )
2520
2520
}
2521
-
2521
+
2522
2522
if (isNightly) {
2523
2523
assert(tastyIsExperimental, " TASTY needs to be experimental in nightly builds" )
2524
2524
val expectedTastyMinor = if (scalaPatch == 0 ) scalaMinor else scalaMinor + 1
2525
2525
assert(tastyMinor == expectedTastyMinor, " Invalid TASTy minor version" )
2526
2526
}
2527
-
2527
+
2528
2528
if (isRelease) {
2529
2529
assert(scalaMinor == tastyMinor, " Minor versions of TASTY vesion and Scala version should match in release builds" )
2530
2530
if (scalaIsRC && scalaPatch == 0 )
2531
2531
assert(tastyIsExperimental, " TASTy should be experimental when releasing a new minor version RC" )
2532
2532
else
2533
- assert(! tastyIsExperimental, " Stable version cannot use experimental TASTY" )
2533
+ assert(! tastyIsExperimental, " Stable version cannot use experimental TASTY" )
2534
2534
}
2535
2535
}
2536
2536
}
0 commit comments