You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2018/01/21 12:56:44 UTC

[sling-org-apache-sling-commons-metrics] 02/02: SLING-7418 Use bnd Maven plugins

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

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

commit 0c76e6ca7cc030823b9baac81aa2bef38a9082a8
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sun Jan 21 13:56:32 2018 +0100

    SLING-7418 Use bnd Maven plugins
---
 bnd.bnd | 28 ++++++++++++++++++++++++++++
 pom.xml | 42 +++++++-----------------------------------
 2 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/bnd.bnd b/bnd.bnd
new file mode 100644
index 0000000..296043e
--- /dev/null
+++ b/bnd.bnd
@@ -0,0 +1,28 @@
+Bundle-Category: sling
+
+Bundle-Description: ${project.description}
+
+Bundle-DocURL: https://sling.apache.org/documentation/bundles/metrics.html
+
+Bundle-License: Apache License, Version 2.0
+
+Bundle-Vendor: The Apache Software Foundation
+
+DynamicImport-Package:\
+  javax.servlet,\
+  javax.servlet.http;version="[2.3,3)",\
+  org.apache.commons.io.output;version="[2.4.0,3)",\
+  org.apache.felix.inventory;version="[1.0.0,2)"
+
+-baseline: *
+
+-exportcontents: ${packages;VERSIONED}
+
+-includeresource:\
+  @org.apache.felix.utils-*.jar!/org/apache/felix/utils/json/JSONWriter**
+
+-removeheaders:\
+  Embed-Dependency,\
+  Embed-Transitive,\
+  Include-Resource,\
+  Private-Package
diff --git a/pom.xml b/pom.xml
index b7d1872..614adee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,6 @@
     </parent>
 
     <artifactId>org.apache.sling.commons.metrics</artifactId>
-    <packaging>bundle</packaging>
     <version>1.2.5-SNAPSHOT</version>
 
     <name>Apache Sling Metrics</name>
@@ -52,39 +51,12 @@
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Bundle-DocURL>
-                            https://sling.apache.org/documentation/bundles/metrics.html
-                        </Bundle-DocURL>
-                        <DynamicImport-Package>
-                            javax.servlet,
-                            javax.servlet.http;version="[2.3,3)",
-                            org.apache.commons.io.output;version="[2.4.0,3)",
-                            org.apache.felix.inventory;version="[1.0.0,2)"
-                        </DynamicImport-Package>
-                        <Embed-Dependency>
-                             org.apache.felix.utils;inline=org/apache/felix/utils/json/JSONWriter**
-                        </Embed-Dependency>
-                    </instructions>
-                    <!-- Export SCR metadata to classpath to have them available in unit tests -->
-                    <exportScr>true</exportScr>
-                </configuration>
-                <executions>
-                    <!-- Configure extra execution of 'manifest' in process-classes phase to make sure SCR metadata is generated before unit test runs -->
-                    <execution>
-                        <id>scr-metadata</id>
-                        <goals>
-                            <goal>manifest</goal>
-                        </goals>
-                        <configuration>
-                            <supportIncrementalBuild>true</supportIncrementalBuild>
-                        </configuration>
-                    </execution>
-                </executions>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+              <groupId>biz.aQute.bnd</groupId>
+              <artifactId>bnd-baseline-maven-plugin</artifactId>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -164,7 +136,7 @@
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.utils</artifactId>
             <version>1.9.0</version>
-            <optional>true</optional>
+            <scope>provided</scope>
         </dependency>
 
         <dependency>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.