Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

GSON version upgrade 2.8.9 in AEM

harishs56063990
Level 1
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
piyushm93887117
Level 1
Level 1

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