Hi,
I am using the example BItbucket plugin decorator to add a tab to the project screen.
I am able to successfully install the plugin and see the tab. However, when I click on it, it gives me a HTTP 500 error with the following message in the log:
com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.bitbucket.server.bitbucket-example-plugin:example-soy
Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.bitbucket.server.bitbucket-example-plugin:example-soy was either missing or disabled
I verified that the Example Soy Templates module is enabled within the plugin by checking in Manage add-ons on Bitbucket.
I have the following within my atlassian-plugin.xml:
<!-- Client web resources -->
<client-resource key="example-soy" name="Example Soy Templates">
<directory location="/templates/">
<include>/**/templates.soy</include>
</directory>
<dependency>com.atlassian.bitbucket.server.bitbucket-web:server-soy-templates</dependency>
<dependency>com.atlassian.bitbucket.server.bitbucket-web:global</dependency>
</client-resource>
I’d appreciate if someone could direct me in what I am missing.
Thank you for the time and help
UPDATE:
I managed to fix the issue by adding the version number to the soy-template-renderer-api:
<dependency>
<groupId>com.atlassian.soy</groupId>
<artifactId>soy-template-renderer-api</artifactId>
<version>4.1.3</version>
<scope>provided</scope>
</dependency>