diff --git a/bnd.bnd b/bnd.bnd
new file mode 100644
index 0000000..a6f5eb8
--- /dev/null
+++ b/bnd.bnd
@@ -0,0 +1 @@
+Bundle-DocURL: https://sling.apache.org/documentation/development/logging.html
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 1440037..902f39b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,14 +22,13 @@
4.0.0
org.apache.sling
- sling
- 30
+ sling-bundle-parent
+ 47
org.apache.sling.commons.logservice
1.1.1-SNAPSHOT
- bundle
Apache Sling OSGi LogService Implementation
@@ -41,25 +40,23 @@
scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git
scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-logservice.git
https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-commons-logservice.git
- HEAD
-
+ HEAD
+
+
+
+ 8
+ 1
+
- org.apache.felix
- maven-bundle-plugin
- true
-
-
-
- org.apache.sling.commons.logservice.internal.Activator
-
-
- http://sling.apache.org/site/logging.html
-
-
-
+ biz.aQute.bnd
+ bnd-maven-plugin
+
+
+ org.apache.rat
+ apache-rat-plugin
@@ -88,8 +85,7 @@
org.osgi
- org.osgi.core
- 6.0.0
+ osgi.core
org.osgi
@@ -100,7 +96,11 @@
org.osgi
org.osgi.service.component
- 1.3.0
+ provided
+
+
+ org.osgi
+ org.osgi.annotation.bundle
provided
@@ -111,8 +111,8 @@
org.mockito
- mockito-all
- 1.10.19
+ mockito-core
+ 4.5.1
test
diff --git a/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java b/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java
index 878a381..7b81dec 100644
--- a/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java
+++ b/src/main/java/org/apache/sling/commons/logservice/internal/Activator.java
@@ -16,6 +16,7 @@
*/
package org.apache.sling.commons.logservice.internal;
+import org.osgi.annotation.bundle.Header;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
@@ -31,6 +32,7 @@
* log service bundle. This activator registers the LogService
and
* LogReaderService
.
*/
+@Header(name = Constants.BUNDLE_ACTIVATOR, value = "${@class}")
public class Activator implements BundleActivator {
private volatile ServiceTracker logReaderTracker;