Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Comala Publishing provides a Java API for other add-ons to extend.

...

Add the Comalatech Maven repository to you .m2/settings.xml file or your project pom.xml.

Code Block
<repository>
    <id>comalatech<id>appfire-comalatech-public</id>
    <url>https://nexus.comalatechappfire.com/content/groups/repository/comalatech-maven-public/</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
    <releases>
        <enabled>true</enabled>
    </releases>
</repository>

...


Add a dependency on the publishing api library to your project

Info

Only available from Comala Publishing 2.16.0 onwards, there will always be a corresponding API library with the same version available.

Code Block
<dependency>
    <groupId>com.comalatech</groupId>
    <artifactId>publishing-api</artifactId>
    <version>2<version>3.81.0</version>
    <scope>provided</scope>
</dependency>

...

Currently the API provides a range of events that can be listened to via Confluence event listeners.  This allows your add-on to take some additional action once a publishing action has taken place.

View the Java API docs.