SLING-8627 - Update sling-jcr-repoinit to Oak 1.16.0 and Jackrabbit 2.18.2

Update the compile and IT dependencies to the latest Oak and Jackrabbit versions.

To make sure we get the right dependencies, we now include all the oak artefacts
in a custom oak.txt provisioning file. We also changed the name of the main
feature to Sling, to make sure overrides are working.
4 files changed
tree: 5c0547e2bf086592073e1b24a7dd59f27a5bd13d
  1. src/
  2. .gitignore
  3. CODE_OF_CONDUCT.md
  4. CONTRIBUTING.md
  5. Jenkinsfile
  6. LICENSE
  7. pom.xml
  8. README.md
README.md

Build Status Test Status Maven Central JavaDocs License jcr

Apache Sling JCR RepoInit module

This module is part of the Apache Sling project.

This module implements Repository Initalization operations for the Sling repoinit modules, operations that can initialize content, service users and privileges in a JCR content repository.

Updating to a newer version of Jackrabbit Oak

The Oak version (and the associated Jackrabbit version) must be maintained in two locations:

  • pom.xml for build and unit testing
  • src/test/features for integration testing

Since the integration tests rely on the Sling Starter to provide the the base instance values, it happens that the Oak version used by repoinit is more recent than the one provided in the starter.

We should not depend on SNAPSHOT starter versions, since this bundle is released more often than the Starter. Therefore the recommended approach is to override the needed bundles in the following manner:

  • in src/test/provisioning/sling.txt - all bundles from the Sling Starter part of the ‘sling.txt’ feature
  • in src/test/provisioning/oak.txt - all bundles from the Sling Starter part of the ‘oak.txt’ feature

For a more concrete example, see SLING-8627 - Update sling-jcr-repoinit to Oak 1.16.0 and Jackrabbit 2.18 and associated commits.