wcm-io / io.wcm.maven.aem-cloud-dependencies

Maven dependencies for the AEM Cloud Service SDK
https://wcm.io/tooling/maven/aem-dependencies.html
Apache License 2.0
2 stars 3 forks source link

Update to 2024.4.15860.20240410T113939Z-240300 and Johnzon 2.0 #52

Closed stefanseifert closed 4 months ago

stefanseifert commented 4 months ago

also introduce a new dependency to support aem-mock/sling-mock based unit tests:

<!-- Update to latest Sling JSON Content Parser 2.x for unit tests for compatibility with Johnzon 2.0 (switch from javax.json to jakarta.json) -->
<dependency>
  <groupId>org.apache.sling</groupId>
  <artifactId>org.apache.sling.contentparser.json</artifactId>
  <version>2.1.0</version>
</dependency>

normally, the version of this dependency is managed by the sling-mock/aem-mock release. but in this case we need a different version based on the johnzon version that is defined by the aem-cloud-dependency/aem-depenency POM.

if manged via this POM, this switch works automatically for all projects updating to latest AEMaaCS version and relying on this dependencies POM.