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

cziegeler pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 25d6c9d  SLING-10311 : API is always included, even if dependency 
mechanism is enabled
25d6c9d is described below

commit 25d6c9db7feed2d61a1844b134ab134527cd9be7
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Fri Apr 16 11:56:56 2021 +0200

    SLING-10311 : API is always included, even if dependency mechanism is 
enabled
---
 src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java 
b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
index cc6c345..6abba4b 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
@@ -702,7 +702,7 @@ public class ApisJarMojo extends 
AbstractIncludingFeatureMojo {
             // check deprecation - if deprecation is set, artifact can't be 
used as a
             // dependency
             final ApiExport exp = region.getAllExportByName(c.getName());
-            if (exp != null && exp.getDeprecation() != null) {
+            if (exp != null && (exp.getDeprecation().getPackageInfo() != null 
|| !exp.getDeprecation().getMemberInfos().isEmpty())) {
                 fullUsage = false;
                 break;
             }

Reply via email to