Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSGi manifests via sbt-osgi plugin #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sbt._
import Keys._
import com.typesafe.sbt._
import com.typesafe.sbt.osgi.SbtOsgi._


object Build extends Build {
Expand All @@ -11,6 +12,12 @@ object Build extends Build {
shellPrompt := { s => Project.extract(s).currentProject.id + " > " }
}

val pbOsgiSettings = osgiSettings ++ Seq(
packageBin in Runtime <<= OsgiKeys.bundle,
OsgiKeys.exportPackage := Seq("org.parboiled;-split-package:=merge-first", "org.parboiled.*;-split-package:=merge-first")
)


val basicSettings = SbtPgp.settings ++ seq(
version := "1.1.7",
scalaVersion := "2.11.5",
Expand Down Expand Up @@ -100,12 +107,13 @@ object Build extends Build {

lazy val root = Project("root", file("."))
.aggregate(parboiledCore, parboiledJava, parboiledScala, examplesJava, examplesScala)
.settings(basicSettings: _*)
.settings(basicSettings: _*)
.settings(noPublishing: _*)


lazy val parboiledCore = Project("parboiled-core", file("parboiled-core"))
.settings(basicSettings: _*)
.settings(pbOsgiSettings: _*)
.settings(javaDoc: _*)
.settings(
crossPaths := false,
Expand All @@ -115,6 +123,7 @@ object Build extends Build {
lazy val parboiledJava = Project("parboiled-java", file("parboiled-java"))
.dependsOn(parboiledCore)
.settings(basicSettings: _*)
.settings(pbOsgiSettings: _*)
.settings(javaDoc: _*)
.settings(
libraryDependencies ++= compile(asm, asmTree, asmAnalysis, asmUtil),
Expand All @@ -126,6 +135,7 @@ object Build extends Build {
lazy val parboiledScala = Project("parboiled-scala", file("parboiled-scala"))
.dependsOn(parboiledCore)
.settings(basicSettings: _*)
.settings(pbOsgiSettings: _*)


lazy val examplesJava = Project("examples-java", file("examples-java"))
Expand Down
2 changes: 2 additions & 0 deletions project/Plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0")
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.7
sbt.version=0.13.8