Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 2024.4.15860.20240410T113939Z-240300 and Johnzon 2.0 #52

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

stefanseifert
Copy link
Member

@stefanseifert stefanseifert commented Apr 12, 2024

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.

  • for AEM 6.5 org.apache.sling.contentparser.json 2.0.0 needs to be used (and is defined as transitive dependency) as it relies on javax.json (same as johnzon 1.x)
  • for AEMaaCS 2024.4.15787.20240404T134829Z-231200 and upwards johnzon 2.x is included, and this requires org.apache.sling.contentparser.json 2.1.0 which relies on jakarta.json

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

@stefanseifert stefanseifert changed the title Update to 2024.4.15860.20240410T113939Z-240300 Update to 2024.4.15860.20240410T113939Z-240300 and Johnzon 2.0 Apr 12, 2024
@stefanseifert stefanseifert merged commit 020a740 into develop Apr 12, 2024
6 checks passed
@stefanseifert stefanseifert deleted the feature/2024.4.15860.20240410T113939Z-240300 branch April 12, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant