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

[sling-slingfeature-maven-plugin] branch master updated: SLING-8468 - [slingfeature-m-p] donate a new MOJO which is able to scan and detect differences between different versions of the same Feature model

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

simonetripodi 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 0312b8a  SLING-8468 - [slingfeature-m-p] donate a new MOJO which is able to scan and detect differences between different versions of the same Feature model
0312b8a is described below

commit 0312b8ab8be073782fbfbc8c3f4f2cd74e822e8b
Author: Simo Tripodi <st...@adobe.com>
AuthorDate: Thu Sep 5 16:22:10 2019 +0200

    SLING-8468 - [slingfeature-m-p] donate a new MOJO which is able to scan
    and detect differences between different versions of the same Feature
    model
    
    added missing documentation
---
 README.md | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/README.md b/README.md
index b28095b..cc5964e 100644
--- a/README.md
+++ b/README.md
@@ -331,3 +331,33 @@ Feature Launcher.
 Beside the Feature Files this Mojo for now supports all the parameters
 of the current Feature Launcher (1.0.7-SNAPSHOT). For more info see the
 FeautreLaucherMojoTest.testFullLaunch() test method.
+
+### Features Diff (features-diff)
+
+This MOJO compares different versions of the same Feature Model, producing the prototype
+Feature Model that shows the differences.
+
+```
+<execution>
+  <id>diff</id>
+  <goals>
+    <goal>features-diff</goal>
+  </goals>
+  <configuration>
+    <selection>
+      <includeClassifier>cloud-ready</includeClassifier>
+      <includeClassifier>main-jar</includeClassifier>
+    </selection>
+    <comparisonVersion>1.0.0-beta</comparisonVersion> <!-- (,${project.version}) by default -->
+  </configuration>
+ </execution>
+```
+
+It will produce `${project.classifier}.json` JSON output files under the `${project.build.directory}/features-diff` directory,
+where IDs will be composed by:
+
+```
+${project.groupId}:${project.artifactId}:${project.classifier}_updater:${project.version}
+```
+
+Diff JSON file will be attached to the project.