Skip to content

Commit

Permalink
Set OsgiKeys.exportPackage to prevent empty jar files
Browse files Browse the repository at this point in the history
  • Loading branch information
lrytz committed May 15, 2018
1 parent e4e11e2 commit 928cc63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ lazy val `scala-collection-compat` = crossProject(JSPlatform, JVMPlatform)
}
)
.jvmSettings(
// TODO: should we add this?
// OsgiKeys.exportPackage := Seq(s"scala.collection.compat.*;version=${version.value}"),
// NOTE: if this setting is not defined, the published jar doesn't contain any classfiles.
// Related to https://github.com/scala/scala-parser-combinators/issues/119.
// TODO: what should the setting be? This library also adds classes to other (existing) packages.
OsgiKeys.exportPackage := Seq(s"scala.collection.compat.*;version=${version.value}"),
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
)
.jsSettings(
Expand Down

1 comment on commit 928cc63

@xuwei-k
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#30

Please sign in to comment.