diff --git a/build.sbt b/build.sbt index e82cd12..0d7b644 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,4 @@ +import OsgiKeys._ crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.0") @@ -13,7 +14,7 @@ def macroDependencies(version: String) = Seq()) lazy val sourcecode = crossProject.settings( - version := "0.1.3", + version := "0.1.4", scalaVersion := "2.11.8", name := "sourcecode" , organization := "com.lihaoyi", @@ -47,6 +48,10 @@ lazy val sourcecode = crossProject.settings( https://github.com/lihaoyi +).enablePlugins(SbtOsgi).settings(osgiSettings).settings( + exportPackage := Seq("sourcecode.*"), + privatePackage := Seq(), + dynamicImportPackage := Seq("*") ) lazy val js = sourcecode.js diff --git a/project/build.sbt b/project/build.sbt index bfdab78..173f9d8 100644 --- a/project/build.sbt +++ b/project/build.sbt @@ -1 +1,2 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.13") +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.8.0")