Please include com.google.code.gson in aem-dependencies, so we do not have to specify the version to import manually.
AEM 6.5.2: 2.8.5
I see, I did a search (through github UI), but couldn't find it. Maybe I was looking in the wrong project.
We're using the a project that was generated from the wcm.io archetype.
In /parent/pom.xml <dependencyManagement>:
In /bundles/commons-core/pom.xml <dependencies>:
This triggers, during the unit tests, an error:
A more detailed stacktrace:
Would this be an issue in my codebase? Anything I'm missing with regards to JsonTreeReader?
The class "DynamicInclude" looks like this:
I believe I'm not doing anything exotic with regards to GSON there?
please note that https://repo1.maven.org/maven2/io/wcm/maven/io.wcm.maven.aem-dependencies/6.5.0.0000/ does not include the gson dependency.
if you are using AEM 6.5.2 use this one:
which includes the gson dependency.
also, make sure the uber-jar dependency is declared last (or at least after the gson dependency) in your project pom.
does this help?
Indeed, this is now working! Thanks! I’ll close the ticket.
Errhhh, I can’t close the ticket. Can you do this, please?