I've followed the various tutorials for building a Confluence app, and yet my web resources (the JS and CSS files) aren't being added to my macro. (I don't see either the js or css file when inspecting the page.)
I have my web resources defined in `atlassian-plugin.xml`:
<web-resource key="validator-resources" name="validator Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="validator.css" location="/css/validator.css"/>
<resource type="download" name="validator.js" location="/js/validator.js"/>
<resource type="download" name="images/" location="/images"/>
<context>validator</context>
</web-resource>
I am using the pageBuilderService in my execute method like so:
pageBuilderService.assembler().resources().requireWebResource("com.vimeo.community.validator:validator-resources");
Here is my source code: https://bitbucket.org/zenahirsch/confluence-validator2/src
Anyone have any idea what I'm doing wrong here?
I'm getting the same issue. Can someone please help with this?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.