By combining Include Bitbucket for Confluence app with PlantUML for Confluence app,
you can have your PlantUML diagrams definitions versioned in your private repository and still enjoy them rendered on your Confluence page.
To get that:
-
use the PlantUML Render macro and within this macro,
-
use the Bitbucket file macro with option Hide File Header checked
to include the PlantUML file from your repository.
For more details, please check documentation of PlantUML Render macro.