<atlassian-plugin name="Atlassian Plugins - Web Resources - Implementation Plugin" key="com.atlassian.plugins.atlassian-plugins-webresource-plugin">
    <!--
    This file is just a mock to enable Soy usage in setup - without it Soy templates cannot be rendered, as there is no
    com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path web resource, so this needs to be mocked.
    Previously there was an implementation of AuiIntegration interface, but it was removed as there is no auiplugin-spi
    since AUI 5.7.0; before that, contextPath() soy helper was provided by JiraAuiIntegration, now it is provided by
    com.atlassian.soy:atlassian-soy-core plugin (which is dependency of com.atlassian.soy.soy-template-plugin - JIRA's
    webresources depend on this one). Due to dependencies of atlassian-plugins-webresource-plugin, is cannot be
    enabled in setup.

    LEGO-666: This also provides the noop implementation of jsI18n resource transformer that is provided by
    com.atlassian.plugins.atlassian-plugins-webresource-plugin and if not present results in many WARNING messages
    in log files during setup.
    -->
    <plugin-info>
        <description>A mock of com.atlassian.plugins.atlassian-plugins-webresource-plugin</description>
        <vendor name="Atlassian" url="http://www.atlassian.com"/>
        <version>3.1.5</version>
    </plugin-info>

    <url-reading-web-resource-transformer key="jsI18n" name="JavaScript I18n Transformer" class="com.atlassian.jira.NoopResourceTransformer" />

    <web-resource key="context-path">
        <dependency>com.atlassian.plugins.jquery:jquery</dependency>
        <dependency>com.atlassian.auiplugin:aui-core</dependency>
        <dependency>jira.webresources:almond</dependency>

        <resource type="download" name="setup-ajs-context-path-mock.js" location="js/setup-ajs-context-path-mock.js"/>
    </web-resource>

    <web-resource key="data">
        <resource type="download" name="setup-wrm-data-mock.js" location="js/setup-wrm-data-mock.js"/>
    </web-resource>
</atlassian-plugin>