Skip to content

Commit ef99494

Browse files
committed
Added BNDPlugin and export package metadata
1 parent 05eb8be commit ef99494

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

project/build/HttpProject.scala

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import sbt._
22
import sbt.Process._
3+
import com.weiglewilczek.bnd4sbt.BNDPlugin
34

4-
class HttpProject(info: ProjectInfo) extends DefaultProject(info) {
5+
class HttpProject(info: ProjectInfo) extends DefaultProject(info) with BNDPlugin {
56
override def managedStyle = ManagedStyle.Maven
67
val publishTo = "Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/"
78
Credentials(Path.userHome / ".ivy2" / ".credentials", log)
89
override def packageSrcJar= defaultJarPath("-sources.jar")
910
val sourceArtifact = Artifact.sources(artifactID)
1011
override def packageToPublishActions = super.packageToPublishActions ++ Seq(packageSrc)
11-
12+
override def bndExportPackage = Seq("org.scalaj;version=\"0.2.2\"")
13+
1214
val specs = if (buildScalaVersion.startsWith("2.7.")) {
1315
"org.scala-tools.testing" % "specs" % "1.6.2.2" % "test" withSources()
1416
} else {
1517
"org.scala-tools.testing" %% "specs" % "1.6.5" % "test" withSources()
1618
}
17-
}
19+
}

0 commit comments

Comments
 (0)