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 2019/01/07 08:37:15 UTC

[sling-parent] branch master updated: SLING-8201 also ban Felix SCR annotations

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 1af4a1f  SLING-8201 also ban Felix SCR annotations
1af4a1f is described below

commit 1af4a1f347399aff8f9e3dfc98c81b78a93c0c53
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Jan 7 09:37:08 2019 +0100

    SLING-8201 also ban Felix SCR annotations
---
 sling-bundle-parent/pom.xml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/sling-bundle-parent/pom.xml b/sling-bundle-parent/pom.xml
index a8c6f2a..db823a8 100644
--- a/sling-bundle-parent/pom.xml
+++ b/sling-bundle-parent/pom.xml
@@ -128,6 +128,23 @@ Bundle-SCM: url=${project.scm.url},connection=${project.scm.connection},develope
                         </configuration>
                     </execution>
                     <execution>
+                        <id>ban-felix-scr-annotations</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <bannedDependencies>
+                                    <excludes>
+                                        <exclude>org.apache.felix:org.apache.felix.scr.annotations</exclude>
+                                    </excludes>
+                                    <message>Felix SCR annotations and the maven-scr-plugin are no longer supported - please migrate to OSGi
+                                        annotations or stick with Sling Parent 29.</message>
+                                </bannedDependencies>
+                            </rules>
+                        </configuration>
+                    </execution>
+                    <execution>
                         <id>ban-maven-bundle-plugin</id>
                         <goals>
                             <goal>enforce</goal>