I am trying to create a web-resource that has a dependency on another web-resource as described here https://developer.atlassian.com/server/jira/platform/web-resource/
I get the functionality working but the resources in the dependency are not minified when running in production mode.
As an example the following is my web-resource in the atlassian-plugin.xml :
<web-resource key="colorpicker" name="Color Picker JQuery Plugin">
<resource type="download" name="colorpicker.js"
location="includes/js/lib/colorpicker/js/colorpicker.js"/>
<resource type="download" name="colorpicker.css"
location="includes/js/lib/colorpicker/css/colorpicker.css"/>
<resource type="download" name="colorpickerimages/"
location="includes/js/lib/colorpicker/images"/>
</web-resource>
and my usage is
<web-resource key="my-usage-of-dependency">
....
<dependency>${project.groupId}.${project.artifactId}:colorpicker
</dependency>
</web-resource>
By using the above lines when loading a page the colorpicker.js is loaded as is (not minified) even though a minified file exists (with -min.js extension). If I replace the dependency by inlining it :
<web-resource key="my-usage-of-dependency">
....
<resource type="download" name="colorpicker.js"
location="includes/js/lib/colorpicker/js/colorpicker.js"/>
<resource type="download" name="colorpicker.css"
location="includes/js/lib/colorpicker/css/colorpicker.css"/>
<resource type="download" name="colorpickerimages/"
location="includes/js/lib/colorpicker/images"/>
</web-resource>
The scripts are loaded minified. Does anyone know how to get the dependency minified as given by the first example?