ImageDelivery unusable in code | Community
Skip to main content
New Participant
Oct 18, 2019 12:38 AM UTC

ImageDelivery unusable in code

According to the documentation here

DynamicMediaHelper ("The Adobe AEM Quickstart and Web Application.")

the isDynamicMediaEnabled method is now deprecated and I wanted to use  the ImageDelivery.isEnabled() to get the same experience and from the depfinder I see I can use the following POM dependency to get hold of the ImageDelivery class.

<dependency>

     <artifactId>cq-delivery-api</artifactId>

     <version>1.2.8</version>

     <groupId>com.adobe.cq.dam</groupId>

     <scope>provided</scope>

</dependency>

but the dependency is probably not publicly available and and am unable to use it in my code, is there a workaround in place?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

New Participant
Oct 21, 2019 6:08 AM UTC

I tried this but it did not work.

Translate
Employee
Oct 18, 2019 1:06 PM UTC

This build of the Uber Jar does though :

https://repo.adobe.com/nexus/content/repositories/releases/com/adobe/aem/uber-jar/6.5.0.0/uber-jar-6.5.0.0-apis-with-dep…

There are quite a few deprecations in the 6.5 UberJar.  You can use this build as a stop-gap until you can refactor out the deprecated dependencies.

Translate
Ankur_Khare
New Participant
Oct 18, 2019 8:32 AM UTC

Then I would suggest we shouldn't be using this feature as this is deprecated and in future versions might be removed, better to look for some other solutions.

You can make this scenario work but I would suggest that's not the correct way.

Translate
New Participant
Oct 18, 2019 7:43 AM UTC

The Uber jar doesn't have that package i.e com.adobe.cq.dam.dm.delivery.api.ImageDelivery

Translate
Ankur_Khare
New Participant
Oct 18, 2019 7:33 AM UTC

Did you check in uber jar?

Try adding proper uber jar as per aem version

Translate