This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-parent.git


The following commit(s) were added to refs/heads/master by this push:
     new 2eca657  SLING-8738 generate error when bnd finds private reference in 
exported (#16)
2eca657 is described below

commit 2eca657b1774c5f2b800ba16676abc138640021c
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Jun 2 10:00:01 2021 +0200

    SLING-8738 generate error when bnd finds private reference in exported (#16)
    
    * SLING-8738 generate error when bnd finds private reference in exported
    package
    
    * add some more OSGi Core R7 individual artifact dependencies
---
 sling-bundle-parent/pom.xml | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/sling-bundle-parent/pom.xml b/sling-bundle-parent/pom.xml
index 04e2033..2c27674 100644
--- a/sling-bundle-parent/pom.xml
+++ b/sling-bundle-parent/pom.xml
@@ -78,6 +78,11 @@ Bundle-Category: sling
 
 # we cannot let bnd-maven-plugin generate it automatically, as Maven applies 
some inheritance logic which is incorrect for Sling 
(https://issues.apache.org/jira/browse/SLING-8537)
 Bundle-DocURL: https://sling.apache.org
+
+# generate error (instead of warning) when exported package uses private 
(non-exported) reference
+-fixupmessages:"Export *,  has \\d+,  private references"; \
+    restrict:=warning; \
+    is:=error
                                 ]]></bnd>
                             </configuration>
                         </execution>
@@ -220,20 +225,32 @@ Bundle-DocURL: https://sling.apache.org
                 <scope>provided</scope>
             </dependency>
             <!-- individual OSGi spec API artifacts (preferred) -->
-            <!-- OSGi framework 1.9, Core R7 
(https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/framework/package-summary.html)
 -->
+            <!-- Framework 1.9, Core R7 
(https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/framework/package-summary.html)
 -->
             <dependency>
                 <groupId>org.osgi</groupId>
                 <artifactId>org.osgi.framework</artifactId>
                 <version>1.9.0</version>
                 <scope>provided</scope>
             </dependency>
-            <!-- OSGi Tracker 1.5, Core R7 
(https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/util/tracker/package-summary.html)
 -->
+            <!-- Tracker 1.5, Core R7 
(https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/util/tracker/package-summary.html)
 -->
             <dependency>
                 <groupId>org.osgi</groupId>
                 <artifactId>org.osgi.util.tracker</artifactId>
                 <version>1.5.3</version>
                 <scope>provided</scope>
             </dependency>
+            <!-- Data Transfer Object 1.1, Core R7 
(https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/dto/package-summary.html)
 -->
+            <dependency>
+                <groupId>org.osgi</groupId>
+                <artifactId>org.osgi.dto</artifactId>
+                <version>1.1.1</version>
+            </dependency>
+            <!-- URL Handlers 1.0, Core R7 
(https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/service/url/package-summary.html)
 -->
+            <dependency>
+                <groupId>org.osgi</groupId>
+                <artifactId>org.osgi.service.url</artifactId>
+                <version>1.0.0</version>
+            </dependency>
             <!-- Configuration Admin 1.6, Compendium R7 
(https://osgi.org/javadoc/osgi.cmpn/7.0.0/org/osgi/service/cm/package-frame.html)
 -->
             <dependency>
                 <groupId>org.osgi</groupId>

Reply via email to