Thank you @matthiasbertsch for sharing!
I still cannot get it to work with 8.8.1 and I have still some Class / Classpath issues with methods returning Dates. While the latter is only annoying, I cannot get past the dependency issues with 8.8.1 in DEV mode (which as I understand is a step to resolve issues with Confluence version 9).
So still, this is what I have in may configuration to start Confluence via atlas-debug.
<atlassian.dev.mode>true</atlassian.dev.mode>
<upm.plugin.upload.enabled>true</upm.plugin.upload.enabled>
<confluence.osgi.treatDeprecatedPackagesAsPublic>true</confluence.osgi.treatDeprecatedPackagesAsPublic>
On one product, the dependency to org.jspecify is missing. I can fix this by adding it to my dependencies with scope compile, but I cannot see that I am using any of the annotations of this library directly.
Unable to resolve ... [304](R 304.0): missing requirement [... [304](R 304.0)] osgi.wiring.package; (osgi.wiring.package=org.jspecify.annotations) Unresolved requirements: [[... [304](R 304.0)] osgi.wiring.package; (osgi.wiring.package=org.jspecify.annotations)]
But at least this one is starting now. So the latest version of 8.8 fixed the issue. Thank you for making this fix happen, @kmacleod!
I thought I understood that confluence.osgi.treatDeprecatedPackagesAsPublic=true would help me to have access to deprecated packages. But on another product, when I start the server / deploy the package, I get this:
Unable to resolve .... [303](R 303.0): missing requirement [... [303](R 303.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.importexport) Unresolved requirements: [[... [303](R 303.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.importexport)]
I am using com.atlassian.confluence.event.events.admin.ImportFinishedEvent which has an accessor method that returns an instance of com.atlassian.confluence.importexport.ImportContext, which is deprecated. The classes are in the confluence jar. How should I fix this? Do I miss any platform dependencies? This is what I use:
<properties>
<!-- <enforcer.skip>true</enforcer.skip> -->
<confluence.version>8.8.1</confluence.version>
<platform.version>6.5.5</platform.version>
<jdk.version>11</jdk.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.platform.dependencies</groupId>
<artifactId>platform-public-api</artifactId>
<version>${platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.atlassian.platform.dependencies</groupId>
<artifactId>platform-deprecated-public-api</artifactId>
<version>${platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.atlassian.platform.dependencies</groupId>
<artifactId>platform-spring-bundle</artifactId>
<version>${platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Cheers