diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1f60ab5b0236..fa8c67c5990c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -116,7 +116,7 @@ jobs: - name: MiMa run: | - ./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues" + ./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues" test_windows_fast: runs-on: [self-hosted, Windows] diff --git a/project/Build.scala b/project/Build.scala index a2012827328c..d08c1198d8dc 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -473,7 +473,10 @@ object Build { lazy val `scala3-interfaces` = project.in(file("interfaces")). settings(commonJavaSettings). - settings(commonMiMaSettings) + settings(commonMiMaSettings). + settings( + versionScheme := Some("semver-spec") + ) /** Find an artifact with the given `name` in `classpath` */ def findArtifact(classpath: Def.Classpath, name: String): File = classpath @@ -1760,6 +1763,7 @@ object Build { val base = project.withCommonSettings. settings( + versionScheme := Some("semver-spec"), libraryDependencies += "org.scala-lang" % "scala-library" % stdlibVersion, // Make sure we do not refer to experimental features outside an experimental scope. // In other words, disable NIGHTLY/SNAPSHOT experimental scope. @@ -1785,7 +1789,15 @@ object Build { def asTastyCore(implicit mode: Mode): Project = project.withCommonSettings. dependsOn(dottyLibrary). settings(tastyCoreSettings). - settings(disableDocSetting) + settings(disableDocSetting). + settings( + versionScheme := Some("semver-spec"), + if (mode == Bootstrapped) { + commonMiMaSettings + } else { + Nil + } + ) def asTastyCoreScala2: Project = project.settings(commonScala2Settings)