Questions tagged [sbt-osgi]

sbt-osgi is a plugin for sbt to to create OSGi bundles.

sbt-osgi is a plugin for sbt to to create OSGi bundles.

Details on how to use the plugin with sbt are found on the github page of the project.

6 questions
2
votes
0 answers

How to unpack dependency jars into the classpath in target?

I am using sbt-osgi to repackage some library dependencies into OSGi packages, and that works well, until I started using scalajs as well. The library dependencies are defined as normal projects something like this: lazy val bonecp =…
MarkHammons
  • 123
  • 1
  • 5
1
vote
1 answer

SBT triggering or detecting in a task if any sources have been recompiled

This snippet is wrong: def bundleTo(dir: String) = Seq( mkBundles <<= (bundle, compile in Compile) map { (fl, anal) => val flTarget = baseDirectory / s"app/$dir/${fl.getName}" if (!flTarget.exists()) { …
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
1
vote
2 answers

SbtOsgi AutoPlugin can't be loaded due to type mismatch error

I tried to use the sbt-osgi plugin, but I can't load its AutoPlugin, the compiler refuses to compile my code. First, I added the newest version of the plugin to project/plugins.sbt: resolvers +=…
kiritsuku
  • 52,967
  • 18
  • 114
  • 136
1
vote
0 answers

How create osgi manifest for bundle built in task?

I have to create osgi manifest for bundle created by task that uses proguard. For osgi part I'm using sbtosgi plugin (ver 0.6) Currently I tried something like this: object BuilderKeys { val pkg = TaskKey[File]("package") val bld =…
kjanosz
  • 31
  • 3
0
votes
1 answer

Exclude libraries that are marked as Provided using the sbt-osgi plugin

Using the sbt-osgi plugin, one can create 'fat jars' by using the OsgiKeys.embeddedJars attribute. For example the following code (extracted from this test) embedds every dependency with a name starting with jUnit into the compiled…
Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
0
votes
1 answer

sbt-osgi Release Repository?

I'm trying to find the release repo for sbt-osgi. It seems that it does not exist via http://search.maven.org, http://repo.typesafe.com/typesafe/webapp/search/artifact/?1&q=sbt-osgi or https://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/. …
Brian Topping
  • 3,235
  • 28
  • 33