Nor­mally when a new ver­sion of CQ/AEM is released then you always have to go through the process around what Maven depen­den­cies you have to upgrade etc.

With AEM6.x this has become a lot simpler!

Now with AEM6 there is just one big Maven depen­dency that you need to add to your project, and you are good to go!

AEM6.0

<depen­dency>
   <groupId>com.adobe.aem</groupId>
   <arti­fac­tId>aem-api</arti­fac­tId>
   <ver­sion>6.0.0.1</ver­sion>
   <scope>pro­vided</scope>
</depen­dency>

AEM6.1

<depen­dency>
   <groupId>com.adobe.aem</groupId>
   <arti­fac­tId>uber-jar</arti­fac­tId>
   <ver­sion>6.1.0</ver­sion>
   <scope>pro­vided</scope>
   <clas­si­fier>obfuscated-apis</clas­si­fier>
</depen­dency>

 NOTE: Make sure you put this depen­dency at the *end* of your dependency-list, this way if other depen­den­cies con­tain newer ver­sions they take precedence.

Com­ment from @DrewGlass:

This is not spe­cific to Maven. It can be used with any build tool. In Gra­dle, it would be:

com.adobe.aem:aem-api:6.0.0.1″

Enjoy!

2 comments
senandung
senandung

thank you for describing this.