diff --git a/xwiki-platform-core/pom.xml b/xwiki-platform-core/pom.xml index 8f491b5480f8bbbbed79a40804d73370143cbd2d..4f569acf274540f8438c8913d487044368fa3d6a 100644 --- a/xwiki-platform-core/pom.xml +++ b/xwiki-platform-core/pom.xml @@ -112,6 +112,29 @@ <options>camelcase,maxparams:5,maxdepth:3,maxstatements:20,maxcomplexity:10,maxlen:120</options> </configuration> </plugin> + <plugin> + <groupId>com.github.searls</groupId> + <artifactId>jasmine-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>test</goal> + </goals> + </execution> + </executions> + <configuration> + <specRunnerTemplate>REQUIRE_JS</specRunnerTemplate> + <customRunnerConfiguration> + ${project.basedir}/src/test/resources/jasmine-require-config.txt + </customRunnerConfiguration> + <preloadSources> + <source>/webjars/require.js</source> + </preloadSources> + <jsSrcDir>${project.basedir}/src/main/webjar</jsSrcDir> + <timeout>10</timeout> + <debug>true</debug> + </configuration> + </plugin> </plugins> </pluginManagement> <plugins> @@ -232,6 +255,7 @@ <module>xwiki-platform-jodatime</module> <module>xwiki-platform-lesscss</module> <module>xwiki-platform-linkchecker</module> + <module>xwiki-platform-livedata</module> <module>xwiki-platform-livetable</module> <module>xwiki-platform-localization</module> <module>xwiki-platform-logging</module> diff --git a/xwiki-platform-core/xwiki-platform-livedata/pom.xml b/xwiki-platform-core/xwiki-platform-livedata/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..39bfc032051037c29f6c5a7959384d81cba4f4be --- /dev/null +++ b/xwiki-platform-core/xwiki-platform-livedata/pom.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.xwiki.platform</groupId> + <artifactId>xwiki-platform-core</artifactId> + <version>12.5-SNAPSHOT</version> + </parent> + <artifactId>xwiki-platform-livedata</artifactId> + <name>XWiki Platform - Live Data</name> + <packaging>pom</packaging> + <description>A UI component useful to display dynamic lists of data.</description> + <modules> + <module>xwiki-platform-livedata-webjar</module> + </modules> +</project> diff --git a/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/pom.xml b/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..6ad79ca357ed3750f696480f0d149e2b7a94f9f2 --- /dev/null +++ b/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/pom.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.xwiki.platform</groupId> + <artifactId>xwiki-platform-livedata</artifactId> + <version>12.5-SNAPSHOT</version> + </parent> + <packaging>webjar</packaging> + <artifactId>xwiki-platform-livedata-webjar</artifactId> + <name>XWiki Platform - Live Data - WebJar</name> + <description>A UI component useful to display dynamic lists of data.</description> + <properties> + <!-- Name to display by the Extension Manager --> + <xwiki.extension.name>Live Data WebJar</xwiki.extension.name> + </properties> + <dependencies> + <dependency> + <groupId>org.webjars</groupId> + <artifactId>requirejs</artifactId> + </dependency> + <dependency> + <groupId>org.webjars</groupId> + <artifactId>jquery</artifactId> + </dependency> + </dependencies> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <!-- Cancel custom MANIFEST file (since it's not generated for "webjar" packaging) --> + <manifestFile combine.self="override" /> + </archive> + </configuration> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>com.cj.jshintmojo</groupId> + <artifactId>jshint-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>com.github.searls</groupId> + <artifactId>jasmine-maven-plugin</artifactId> + </plugin> + </plugins> + </build> +</project> diff --git a/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/test/resources/jasmine-require-config.txt b/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/test/resources/jasmine-require-config.txt new file mode 100644 index 0000000000000000000000000000000000000000..bae7f4c9bcf3f8a60d6300d43c0d7aecda94a91b --- /dev/null +++ b/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/test/resources/jasmine-require-config.txt @@ -0,0 +1,3 @@ +paths: { + 'jquery': '/webjars/jquery' +} \ No newline at end of file diff --git a/xwiki-platform-core/xwiki-platform-web/pom.xml b/xwiki-platform-core/xwiki-platform-web/pom.xml index 9dc405125e970cd30e839d06e7c9eca7f05e382f..e68b48d9dd82fcdd4c029803ca2117936effcac9 100644 --- a/xwiki-platform-core/xwiki-platform-web/pom.xml +++ b/xwiki-platform-core/xwiki-platform-web/pom.xml @@ -180,24 +180,8 @@ <plugin> <groupId>com.github.searls</groupId> <artifactId>jasmine-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>test</goal> - </goals> - </execution> - </executions> <configuration> - <specRunnerTemplate>REQUIRE_JS</specRunnerTemplate> - <customRunnerConfiguration> - ${project.basedir}/src/test/resources/jasmine-require-config.txt - </customRunnerConfiguration> - <preloadSources> - <source>/webjars/require.js</source> - </preloadSources> <jsSrcDir>${project.basedir}/src/main/webapp/resources</jsSrcDir> - <timeout>10</timeout> - <debug>true</debug> </configuration> </plugin> <plugin>