You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2018/05/12 15:15:38 UTC

[sling-parent] branch master updated: SLING-7575 upgrade to newest bundle-maven-plugin, include some common instructions for that plugin in the configuration

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 9bb7543  SLING-7575 upgrade to newest bundle-maven-plugin, include some common instructions for that plugin in the configuration
9bb7543 is described below

commit 9bb75436e64596b05f019e4359a7bbbd5977b448
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat May 12 17:15:17 2018 +0200

    SLING-7575 upgrade to newest bundle-maven-plugin, include some common
    instructions for that plugin in the configuration
---
 pom.xml | 32 ++++++++++++++++++++++++++++----
 1 file changed, 28 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 66433d1..74bee59 100644
--- a/pom.xml
+++ b/pom.xml
@@ -135,12 +135,12 @@
                         </goals>
                         <configuration>
                             <rules>
-                                <!-- Require Java 7 or higher for building (as bnd since version 3.0 is built with Java 7) -->
+                                <!-- Require Java 8 or higher for building (as bnd since version 4.0 only supports Java 8, https://github.com/bndtools/bnd/wiki/Changes-in-4.0.0) -->
                                 <requireJavaVersion>
                                     <message>
-                                        Apache Sling must be compiled with Java 7 or higher
+                                        Apache Sling must be compiled with Java 8 or higher
                                     </message>
-                                    <version>1.7.0</version>
+                                    <version>1.8.0</version>
                                 </requireJavaVersion>
                                 <requireMavenVersion>
                                     <version>3.3.9</version>
@@ -370,12 +370,36 @@
                 <plugin>
                     <groupId>biz.aQute.bnd</groupId>
                     <artifactId>bnd-maven-plugin</artifactId>
-                    <version>3.5.0</version>
+                    <version>4.0.0</version>
                     <executions>
                         <execution>
                             <goals>
                                 <goal>bnd-process</goal>
                             </goals>
+                            <configuration>
+                                <bnd><![CDATA[
+Bundle-Category: sling
+
+Bundle-Description: ${project.description}
+
+Bundle-DocURL: https://sling.apache.org
+
+Bundle-License: Apache License, Version 2.0
+
+Bundle-Vendor: The Apache Software Foundation
+
+# export all versioned packages by default
+# overwrite with "${removeall;${packages;VERSIONED};${packages;CONDITIONAL}}" in your project,
+# in case you have conditional packages (compare with https://github.com/bndtools/bnd/issues/2131)
+# this currently cannot be done globally, as bnd 4.0 doesn't support empty package groups in macro 
+# removeall (https://groups.google.com/d/msg/bndtools-users/d8K2FTzJdeQ/JeVbVvncAAAJ)
+-exportcontents: ${packages;VERSIONED}
+
+# overwrite timestamp format used as qualifier for snapshots to make the resolution higher (i.e. make them differ for each build), 
+# compare with https://www.mail-archive.com/dev@sling.apache.org/msg76177.html
+-snapshot: ${tstamp;yyyyMMddHHmmssSSS}
+                                ]]></bnd>
+                            </configuration>
                         </execution>
                     </executions>
                 </plugin>

-- 
To stop receiving notification emails like this one, please contact
kwin@apache.org.