Skip to content

Commit

Permalink
Use wildcard for export package settings for dotty native projects, i…
Browse files Browse the repository at this point in the history
…t seems to generate package like org.scalatest.SuittesL20org that needs to be included.
  • Loading branch information
cheeseng committed Apr 21, 2022
1 parent 06c1d67 commit f4e133c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions project/DottyBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,7 @@ trait DottyBuild { this: BuildCommons =>
}
).settings(osgiSettings: _*).settings(
OsgiKeys.exportPackage := Seq(
"org.scalatest",
"org.scalatest.compatible",
"org.scalatest.concurrent",
"org.scalatest.enablers",
"org.scalatest.exceptions",
"org.scalatest.events",
"org.scalatest.fixture",
"org.scalatest.prop",
"org.scalatest.tags",
"org.scalatest.tagobjects",
"org.scalatest.time",
"org.scalatest.tools",
"org.scalatest.verbs"
"org.scalatest.*"
),
OsgiKeys.importPackage := Seq(
"org.scalatest.*",
Expand Down Expand Up @@ -487,7 +475,7 @@ trait DottyBuild { this: BuildCommons =>
def scalatestStyleModuleNative(style: String, title: String): Project =
scalatestSubModule(s"scalatest-$style", title, GenModulesDotty.applyNative(style))
.settings(
OsgiKeys.exportPackage := Seq(s"org.scalatest.$style"),
OsgiKeys.exportPackage := Seq(s"org.scalatest.$style.*"),
).dependsOn(scalatestCoreDottyNative).enablePlugins(ScalaNativePlugin)

}
Expand Down

0 comments on commit f4e133c

Please sign in to comment.