How to choose dependencies versions

We are currently using this dependency management:

      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-plugins-platform-pom</artifactId>
            <version>${confluence.version}</version>
            <type>pom</type>
            <scope>import</scope>
          </dependency>

          <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>
           ...

        </dependencies>
      </dependencyManagement>

I am not yet sure, if the older versions support platform 6 or if only some of the Version 8 are covered. We are currently working on finding out, what we need to change for V9 and bother whether we can still provide one version for all current Confluence versions later. So it seems you are way ahead of me … :smile:

Since with V9 you are supposed to bundle your dependencies with your app, I assume that this link may help:
https://developer.atlassian.com/server/confluence/get-your-apps-ready-for-gray-api-removal/

On the following threads you may find some hints on how others deal with the various questions on running an app on the different platform versions:

I hope this helps …

1 Like