LOG4J2-2295: Add OSGi metadata to release jars
diff --git a/build.sbt b/build.sbt
index b91cbb0..5bb6b15 100644
--- a/build.sbt
+++ b/build.sbt
@@ -15,7 +15,7 @@
* limitations under the license.
*/
import Dependencies._
-//import OsgiKeys._
+import OsgiKeys._
enablePlugins(org.apache.logging.log4j.scala.sbt.copyresources.CopyResourcesPlugin)
@@ -108,10 +108,10 @@
)
)
-//lazy val bundleSettings = osgiSettings ++ Seq(
-// bundleSymbolicName := "org.apache.logging.log4j.scala",
-// exportPackage := Seq("org.apache.logging.log4j.scala")
-//)
+lazy val bundleSettings = osgiSettings ++ Seq(
+ bundleSymbolicName := "org.apache.logging.log4j.scala",
+ exportPackage := Seq("org.apache.logging.log4j.scala")
+)
lazy val root = (project in file("."))
.settings(name := "log4j-api-scala")
@@ -124,8 +124,8 @@
.settings(apiDependencies: _*)
.enablePlugins(AsciidoctorPlugin)
.enablePlugins(SiteScaladocPlugin)
-// .enablePlugins(SbtOsgi)
-// .settings(bundleSettings: _*)
+ .enablePlugins(SbtOsgi)
+ .settings(bundleSettings: _*)
//lazy val nopublish = Seq(
// publish := {},
diff --git a/project/plugins.sbt b/project/plugins.sbt
index e50648c..2701fb5 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -19,5 +19,5 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-license-report" % "1.2.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.2")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.0")
-//addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.3")
+addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.3")
addSbtPlugin("org.musigma" % "sbt-rat" % "0.2")
diff --git a/src/asciidoctor/changes.adoc b/src/asciidoctor/changes.adoc
index 748b0e9..fabd482 100644
--- a/src/asciidoctor/changes.adoc
+++ b/src/asciidoctor/changes.adoc
@@ -21,6 +21,7 @@
[vertical]
New Features::
[horizontal]
+LOG4J2-2295::: Add OSGi metadata to release jars.
LOG4J2-2294::: Add release audit information to build.
LOG4J2-2298::: Add changelog to site.
LOG4J2-2293::: Add required license files to SBT output artifacts.