@@ -453,6 +453,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
453
453
).settings(osgiSettings : _* ).settings(
454
454
OsgiKeys .exportPackage := Seq (
455
455
" org.scalatest" ,
456
+ " org.scalatest.compatible" ,
456
457
" org.scalatest.concurrent" ,
457
458
" org.scalatest.check" ,
458
459
" org.scalatest.diagrams" ,
@@ -498,7 +499,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
498
499
" Bundle-Vendor" -> " Artima, Inc." ,
499
500
" Main-Class" -> " org.scalatest.tools.Runner"
500
501
)
501
- ).dependsOn(scalatestCompatible, scalacticMacro % " compile-internal, test-internal" , scalactic)
502
+ ).dependsOn(scalacticMacro % " compile-internal, test-internal" , scalactic)
502
503
503
504
lazy val scalatestTest = Project (" scalatest-test" , file(" scalatest-test" ))
504
505
.settings(sharedSettings : _* )
@@ -603,7 +604,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
603
604
604
605
lazy val rootProject = Project (" root" , file(" ." )).aggregate(scalacticMacro, scalactic, scalatest, commonTest, scalacticTest, scalatestTest)
605
606
606
- lazy val scalatestCompatible = Project (" scalatestCompatible" , file(" scalatest-compatible" ))
607
+ lazy val scalatestCompatible = Project (" scalatestCompatible" , file(" modules/jvm/ scalatest-compatible" ))
607
608
.enablePlugins(SbtOsgi )
608
609
.settings(commonSharedSettings : _* )
609
610
.settings(scalatestDocSettings : _* )
@@ -621,6 +622,11 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
621
622
Seq .empty[File ]
622
623
}.taskValue
623
624
},
625
+ sourceGenerators in Compile += {
626
+ Def .task{
627
+ GenModules .genScalaTestCompatible((javaSourceManaged in Compile ).value, version.value, scalaVersion.value)
628
+ }.taskValue
629
+ },
624
630
scalatestDocSettings,
625
631
mimaPreviousArtifacts := Set (organization.value %% name.value % previousReleaseVersion),
626
632
mimaCurrentClassfiles := (classDirectory in Compile ).value.getParentFile / (name.value + " _" + scalaBinaryVersion.value + " -" + releaseVersion + " .jar" )
0 commit comments