Upgrade procedure - 4.2

This document describes the procedure for upgrading project running on Slice 4.1.0 to the latest version - Slice 4.2.0.

The only step required is to update Slice version in pom.xml and set it to 4.2.0, e.g.:

...
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core-api</artifactId>
    <version>4.2.0</version>
</dependency>
...

Add-ons

It's highly advisable to upgrade AEM/CQ add-on along with Slice 4.2. The updated dependencies are as follows:

AEM 6.0 Add-on
...
<dependency>
    <groupId>com.cognifide.slice-addon</groupId>
    <artifactId>slice-aem60</artifactId>
    <version>1.1.0</version>
</dependency>
...
CQ 5.6 Add-on
...
<dependency>
    <groupId>com.cognifide.slice-addon</groupId>
    <artifactId>slice-cq56</artifactId>
    <version>2.1.0</version>
</dependency>
...

AEM6 with SP1 issue

Due to Sling bug (https://issues.apache.org/jira/browse/SLING-3944) which is present in the Service Pack 1, Slice 4.2 may not start properly, resulting in Peaberry bundle being not active. To fix this problem it is suggested to either:
1) upgrade org.apache.sling.scripting.java bundle to version 2.0.12 which fixes the issue with incorrect export of javax.inject package (http://mvnrepository.com/artifact/org.apache.sling/org.apache.sling.scripting.java/2.0.12) or
2) install SP2 which contains above bundle