@@ -21,6 +21,8 @@ import org.scalajs.sbtplugin.ScalaJSPlugin
21
21
import org .scalajs .sbtplugin .ScalaJSPlugin .autoImport ._
22
22
import sbtbuildinfo .BuildInfoPlugin
23
23
import sbtbuildinfo .BuildInfoPlugin .autoImport ._
24
+ import sbttastymima .TastyMiMaPlugin
25
+ import sbttastymima .TastyMiMaPlugin .autoImport ._
24
26
25
27
import scala .util .Properties .isJavaAtLeast
26
28
import org .portablescala .sbtplatformdeps .PlatformDepsPlugin .autoImport ._
@@ -994,6 +996,15 @@ object Build {
994
996
" scala.annotation.specialized" ,
995
997
" scala.annotation.unspecialized" ,
996
998
),
999
+ tastyMiMaPreviousArtifacts += " org.scala-lang" % " scala-library" % stdlibVersion(Bootstrapped ),
1000
+ tastyMiMaCurrentClasspath := {
1001
+ val javaBootCp = tastyMiMaJavaBootClasspath.value
1002
+ val classDir = (Compile / classDirectory).value.toPath()
1003
+ val cp0 = Attributed .data((Compile / fullClasspath).value).map(_.toPath())
1004
+ val cp : Seq [Path ] = classDir +: (javaBootCp ++ cp0)
1005
+ (cp, classDir)
1006
+ },
1007
+ tastyMiMaConfig ~= { _.withMoreProblemFilters(TastyMiMaFilters .StdlibBootstrapped ) },
997
1008
// TODO package only TASTy files.
998
1009
// We first need to check that a project can depend on a JAR that only contains TASTy files.
999
1010
// Compile / exportJars := true,
0 commit comments