...
io.wcm:io.wcm.testing.wcm-io-mock.caconfig
org.apache.sling:org.apache.sling.testing.caconfig-mock-plugin
Make sure you have configured the Context-Aware Configuration bnd plugin in your pom hierarchy - or inherit from io.wcm.maven:io.wcm.maven.global-parent
where it is already configured.
Additionally update all other wcm.io Bundles to the latest version - in most cases this involves an update of the major version from 0.x to 1.x. In case of AEM Mocks update to the latest 1.x version for AEM 6.2, and to the latest 2.x version if you are using AEM 6.2 or higher.
...
- The
MediaFormatBuilder.create
method no longer supports the 2nd (Application ID) parameter - call it only with one parameter, the media format name. - Mark all download media formats with
setDownloaddownload(true)
- The abstract class
io.wcm.handler.media.spi.helpers.AbstractMediaFormatProvider
was removed - instead directly extendio.wcm.handler.media.spi.MediaFormatProvider
...
- Remove
@Model
and@Application
annotations. Instead, make it an OSGi service published as and extendingio.wcm.handler.media.spi.MediaHandlerConfig
. - It is not required to set it as immediate
- Check the new default implementation of super classes - perhaps you can remove some of your customization overrides or even remove the whole class
- The method
getDownloadMediaFormats
is no longer supported - instead go the list of defined media formats and add the call setDownloadapplydownload(true)
to all download media formats
...