Removed (Adobe's removal date: 26 February 2026)

Replacing Google Guava in AEM as a Cloud Service

The platform deprecated its Guava export on 15 May 2023. Adobe set 26 February 2026 as its removal date and now lists it as removed. Bundles that import com.google.common no longer resolve. Adobe's own migration tooling maps Guava caches to Caffeine.

Affected packages and APIs

  • com.google.common.*

What to use instead

JDK collections and java.util.Objects for most uses, Caffeine for caches, or an embedded Guava version (Adobe's notes list guava 33.4.8-jre) when the dependency is unavoidable.

How to fix it

  1. Replace Lists.newArrayList(), Maps.newHashMap() and similar with JDK constructors or List.of().
  2. Replace Preconditions with java.util.Objects.requireNonNull and explicit checks.
  3. Replace CacheBuilder with Caffeine and review eviction settings.
  4. If a library you depend on needs Guava, embed it in that bundle instead of importing it from the platform.

AEM 6.5

import com.google.common.cache.CacheBuilder;

Cache<String, Page> cache = CacheBuilder.newBuilder()
    .maximumSize(500)
    .expireAfterWrite(10, TimeUnit.MINUTES)
    .build();

Cloud Service

import com.github.benmanes.caffeine.cache.Caffeine;

Cache<String, Page> cache = Caffeine.newBuilder()
    .maximumSize(500)
    .expireAfterWrite(Duration.ofMinutes(10))
    .build();

How we detect it

  • Readiness scan rule guava: Google Guava imports (removed from Cloud Service; Adobe's removal date was 26 Feb 2026).
  • Readiness scan rule guava-public-api: Guava types in public APIs (cross-file change).

Best Practices Analyzer reports it under OCU.

Can agents fix it?

High. Collection helpers and caches convert mechanically; reviewers check cache semantics.

The rating is for Surge Migrate's AEM 6.5 code pipeline. Agents draft the change, deterministic rules check it, and a named engineer approves every pull request. Your team merges.

Source: Adobe Experience League. Checked 19 October 2026.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples.

On AEM 6.5 code: Scan AEM 6.5 code free. The scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.