Preparing for Confluence 9.0 - EAP out now

Hello!
Looking at the EAP and from the list of removed APIs/packages we have com.google.common for example. So we follow the recommendation and bundle guava in the app:

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>33.0.0-jre</version>
            <scope>compile</scope>
        </dependency>

But as stated already in November by the community (Include/exclude list for RFC-24 Data Center grey API removal - #2 by scott.dudley) I get this error that I’m not allowed to scope compile this dependency:

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
make sure platform artifacts are not bundled into plugin
Found Banned Dependency: com.google.code.findbugs:jsr305:jar:3.0.2
Found Banned Dependency: com.google.guava:guava:jar:33.0.0-jre

What should I define the as? How do I proceed? Thank you.

6 Likes