This is an automated email from the ASF dual-hosted git repository. kwin pushed a commit to branch feature/manage-oak-dependencies in repository https://gitbox.apache.org/repos/asf/sling-parent.git
commit cdaf2f5143af7ac69a422ba9247dcf589eac2716 Author: Konrad Windszus <k...@apache.org> AuthorDate: Fri Sep 26 14:45:47 2025 +0200 SLING-12952 Manage common Oak related dependencies This eases running ITs with Oak as Oak requires a minimum version of certain JR2 artifacts as well --- sling-parent/pom.xml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/sling-parent/pom.xml b/sling-parent/pom.xml index ebac21b..1f518b7 100644 --- a/sling-parent/pom.xml +++ b/sling-parent/pom.xml @@ -119,6 +119,10 @@ <!-- the github id used for the ribbon for Maven sites: https://maven.apache.org/skins/maven-fluido-skin/#GitHub_ribbons --> <github.project.id>apache/sling-dummyproject</github.project.id> <javadoc.excludePackageNames>*.impl:*.internal:${site.javadoc.exclude}</javadoc.excludePackageNames> + <!-- don't go below this minimum version to allow ITs with Oak running on Java > 14 (https://issues.apache.org/jira/browse/OAK-7358)--> + <oak.version>1.62.0</oak.version> + <!-- should be set to the minimum JR version being required by Oak set in oak.version --> + <jackrabbit.version>2.20.15</jackrabbit.version> </properties> <dependencyManagement> @@ -138,12 +142,22 @@ <version>1</version> </dependency> - <!-- JCR API --> + <!-- JCR related dependencies, only rarely used but manage version as having an impact on ITs leveraging Oak --> <dependency> <groupId>javax.jcr</groupId> <artifactId>jcr</artifactId> <version>2.0</version> </dependency> + <dependency> + <groupId>org.apache.jackrabbit</groupId> + <artifactId>oak-jackrabbit-api</artifactId> + <version>${oak.version}</version> + </dependency> + <dependency> + <groupId>org.apache.jackrabbit</groupId> + <artifactId>jackrabbit-jcr-commons</artifactId> + <version>${jackrabbit.version}</version> + </dependency> <!-- Basic Logging --> <dependency> @@ -311,6 +325,22 @@ </rules> </configuration> </execution> + <execution> + <id>ban-plugins-and-dependencies</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <bannedDependencies> + <excludes> + <exclude>org.apache.jackrabbit:jackrabbit-api</exclude> + </excludes> + <message>Jackrabbit API changed coordinates in newer versions (https://issues.apache.org/jira/browse/OAK-8339). Use "org.apache.jackrabbit:oak-jackrabbit-api" instead.</message> + </bannedDependencies> + </rules> + </configuration> + </execution> </executions> </plugin>