Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

GSON version upgrade 2.8.9 in AEM

Avatar

Level 1

I have mentioned gson as depedndecy in pom.xml with version as below.
<dependency>
<artifactId>gson</artifactId>
<version>2.8.9</version>
<groupId>com.google.code.gson</groupId>
<scope>provided</scope>
</dependency>
Since all Latest AEM by default have GSON version with 2.8.5 and by project bundle is picking by 2.8.5 not 2.8.9. Because of this for some of the classes getting error like no method found.
Please suggest how to upgrade to 2.8.9

1 Reply

Avatar

Level 1

you need to embed this jar and put dependecy on top in dependecy management of parennt pom or bundle pom.