You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/12/05 22:36:35 UTC

[sling-slingfeature-maven-plugin] branch master updated: SLING-8873 - Validate the sourceId property at build time

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

rombert 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 5edff10  SLING-8873 - Validate the sourceId property at build time
5edff10 is described below

commit 5edff10b96439ec71c0bd011e6e1d80bd431d434
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Dec 5 14:30:08 2019 +0100

    SLING-8873 - Validate the sourceId property at build time
    
    Include the apis-jar check by default.
---
 pom.xml                                                                 | 2 +-
 .../java/org/apache/sling/feature/maven/mojos/AnalyseFeaturesMojo.java  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b3f13fe..3e340d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -169,7 +169,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.feature.analyser</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.1-SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/AnalyseFeaturesMojo.java b/src/main/java/org/apache/sling/feature/maven/mojos/AnalyseFeaturesMojo.java
index d3ef86d..7775b4e 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/AnalyseFeaturesMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/AnalyseFeaturesMojo.java
@@ -113,6 +113,7 @@ public class AnalyseFeaturesMojo extends AbstractIncludingFeatureMojo {
                     includedTasks = new HashSet<>();
                     includedTasks.add("bundle-packages");
                     includedTasks.add("requirements-capabilities");
+                    includedTasks.add("apis-jar");
                     if (an.getExcludeTasks() != null) {
                         includedTasks.removeAll(an.getExcludeTasks());
                         if (includedTasks.isEmpty()) {