Skip to content

Commit 928cc63

Browse files
committed
Set OsgiKeys.exportPackage to prevent empty jar files
1 parent e4e11e2 commit 928cc63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sbt

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ lazy val `scala-collection-compat` = crossProject(JSPlatform, JVMPlatform)
2222
}
2323
)
2424
.jvmSettings(
25-
// TODO: should we add this?
26-
// OsgiKeys.exportPackage := Seq(s"scala.collection.compat.*;version=${version.value}"),
25+
// NOTE: if this setting is not defined, the published jar doesn't contain any classfiles.
26+
// Related to https://github.com/scala/scala-parser-combinators/issues/119.
27+
// TODO: what should the setting be? This library also adds classes to other (existing) packages.
28+
OsgiKeys.exportPackage := Seq(s"scala.collection.compat.*;version=${version.value}"),
2729
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
2830
)
2931
.jsSettings(

0 commit comments

Comments
 (0)