I’ve cloned the Atlassian example plugin Bitbucket Server Example Pull Request UI with the intention of altering it to operate on the Pull Request and Commit View pages. Instead of the TODO list maintained by the example plugin, I’ll be adding links to an external app.
In the example plugin definition (/src/main/resources/atlassian-plugin.xml) there’s a client-resources tag, shown below. Within it there’s a dependency definition for com.atlassian.bitbucket.server.bitbucket-web-api:pull-request-web-panels (bolded below). I’m not sure what the dependency does. Just judging by the name in the example tag, I think it must be fundamental code implementing the Client Web Panel Plugin Module code for the Pull Request page, and is a part of the BB Web API. I suspect I need a similar dependency for our plugin for the Commit View page.
<client-resource key="pr-overview-resources" name="Pull Request Overview Resources">
<directory location="/css/" />
<directory location="/js/" />
<directory location="/soy/" />
<dependency>com.atlassian.auiplugin:ajs</dependency>
**<dependency>com.atlassian.bitbucket.server.bitbucket-web-api:pull-request-web-panels</dependency>**
</client-resource>
My issue is that I can’t figure out from the documentation what the corresponding dependency is for the Commit View page. I’ve tried a few guesses with no success, and also tried just commenting out the dependency declaration, on the theory that I can’t find it because it doesn’t exist because it’s not needed. No luck.
I hope someone can come thru with the correct info.