Skip to content

Commit d50b0a6

Browse files
committed
add osgi headers
1 parent 43e7d43 commit d50b0a6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build.sbt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import OsgiKeys._
12

23
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.0")
34

@@ -13,7 +14,7 @@ def macroDependencies(version: String) =
1314
Seq())
1415

1516
lazy val sourcecode = crossProject.settings(
16-
version := "0.1.3",
17+
version := "0.1.4",
1718
scalaVersion := "2.11.8",
1819
name := "sourcecode" ,
1920
organization := "com.lihaoyi",
@@ -47,6 +48,10 @@ lazy val sourcecode = crossProject.settings(
4748
<url>https://github.com/lihaoyi</url>
4849
</developer>
4950
</developers>
51+
).enablePlugins(SbtOsgi).settings(osgiSettings).settings(
52+
exportPackage := Seq("sourcecode.*"),
53+
privatePackage := Seq(),
54+
dynamicImportPackage := Seq("*"),
5055
)
5156

5257
lazy val js = sourcecode.js

project/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.13")
2+
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.8.0")

0 commit comments

Comments
 (0)