@@ -1037,7 +1037,46 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
1037
1037
" Bundle-DocURL" -> " http://www.scalatest.org/" ,
1038
1038
" Bundle-Vendor" -> " Artima, Inc."
1039
1039
)
1040
- ).dependsOn(scalatestMatchersCore)
1040
+ ).dependsOn(scalatestMatchersCore)
1041
+
1042
+ lazy val scalatestMustMatchers = Project (" scalatestMustMatchers" , file(" modules/scalatest-mustmatchers" ))
1043
+ .enablePlugins(SbtOsgi )
1044
+ .settings(sharedSettings : _* )
1045
+ .settings(scalatestDocSettings : _* )
1046
+ .settings(
1047
+ projectTitle := " ScalaTest Must Matchers" ,
1048
+ name := " scalatest-mustmatchers" ,
1049
+ organization := " org.scalatest" ,
1050
+ sourceGenerators in Compile += {
1051
+ // Little trick to get rid of bnd error when publish.
1052
+ Def .task{
1053
+ (new File (crossTarget.value, " classes" )).mkdirs()
1054
+ Seq .empty[File ]
1055
+ }.taskValue
1056
+ },
1057
+ sourceGenerators in Compile += {
1058
+ Def .task{
1059
+ GenMatchers .genMain((sourceManaged in Compile ).value / " org" / " scalatest" , version.value, scalaVersion.value)
1060
+ }.taskValue
1061
+ },
1062
+ scalatestDocSettings,
1063
+ mimaPreviousArtifacts := Set (organization.value %% name.value % previousReleaseVersion),
1064
+ mimaCurrentClassfiles := (classDirectory in Compile ).value.getParentFile / (name.value + " _" + scalaBinaryVersion.value + " -" + releaseVersion + " .jar" )
1065
+ ).settings(osgiSettings : _* ).settings(
1066
+ OsgiKeys .exportPackage := Seq (
1067
+ " org.scalatest.matchers.must"
1068
+ ),
1069
+ OsgiKeys .importPackage := Seq (
1070
+ " org.scalatest.*" ,
1071
+ " *;resolution:=optional"
1072
+ ),
1073
+ OsgiKeys .additionalHeaders:= Map (
1074
+ " Bundle-Name" -> " ScalaTest Must Matchers" ,
1075
+ " Bundle-Description" -> " ScalaTest is an open-source test framework for the Java Platform designed to increase your productivity by letting you write fewer lines of test code that more clearly reveal your intent." ,
1076
+ " Bundle-DocURL" -> " http://www.scalatest.org/" ,
1077
+ " Bundle-Vendor" -> " Artima, Inc."
1078
+ )
1079
+ ).dependsOn(scalatestMatchersCore)
1041
1080
1042
1081
def gentestsLibraryDependencies =
1043
1082
Seq (
0 commit comments