Skip to content
Snippets Groups Projects
Commit cbe676ba authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

XWIKI-19759: Publish the JobRunner module to the global RequireJS configuration

* We need to add localization-webjar and localization-rest-default to the minimal WAR because job.js from platform-web-war was refactored to use the xwiki-l10n JavaScript module. Moving job.js outside platform-web-war is not easy without a proper skin extension plugin to load files from WebJars.

(cherry picked from commit a8d85593)
parent 4cdece43
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,24 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<!-- JavaScript code from platform-web-war that needs translation messages should use the xwiki-l10n JavaScript
module provided by localization-webjar (see https://extensions.xwiki.org/xwiki/bin/view/Extension/Localization/#HFromJavaScript).
Translation messages are fetched using REST so we also need an implementation of the localizaion-rest-api. Note
that currently it's not easy to move JavaScript code outside platform-web-war (e.g. in a WebJar module that
properly declares its dependencies) because we're missing XWIKI-12788: "Introduce skin extension plugins for webjar
resources". This is the case with job.js that depends on 'xwiki-l10n' module. -->
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-localization-webjar</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-localization-rest-default</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Security -->
<dependency>
<groupId>org.xwiki.platform</groupId>
......
......@@ -438,18 +438,6 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-localization-rest-default</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-localization-webjar</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Crypto Module -->
<dependency>
<groupId>org.xwiki.platform</groupId>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment