mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-08-07 15:05:55 +02:00
Completing integration of grunt into maven
This commit is contained in:
parent
8b297e663e
commit
7c45b9db8a
10
pom.xml
10
pom.xml
@ -122,6 +122,11 @@
|
||||
<skip>${skipSanityChecks}</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>0.0.14</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
@ -275,11 +280,6 @@
|
||||
<artifactId>sonar-packaging-maven-plugin</artifactId>
|
||||
<version>1.9</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-maven-plugin</artifactId>
|
||||
<version>1.7.2</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
|
@ -11,6 +11,10 @@
|
||||
<packaging>war</packaging>
|
||||
<name>SonarQube :: Server</name>
|
||||
|
||||
<properties>
|
||||
<gruntTask>default</gruntTask>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
@ -253,7 +257,6 @@
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>0.0.14</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
@ -282,53 +285,34 @@
|
||||
<goals>
|
||||
<goal>grunt</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>${gruntTask}</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-maven-plugin</artifactId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>prepare-package</phase>
|
||||
<id>copy-generated-webapp</id>
|
||||
<!-- must be after the execution of grunt -->
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
|
||||
<overwrite>false</overwrite>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/webapp/build</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<targetGroups>sonar</targetGroups>
|
||||
<minimize>true</minimize>
|
||||
<cssDestinationFolder>${project.build.directory}/${project.build.finalName}/stylesheets</cssDestinationFolder>
|
||||
<jsDestinationFolder>${project.build.directory}/${project.build.finalName}/javascripts</jsDestinationFolder>
|
||||
<contextFolder>${basedir}/src/main/webapp/</contextFolder>
|
||||
<wroFile>${basedir}/wro.xml</wroFile>
|
||||
<wroManagerFactory>ro.isdc.wro.extensions.manager.standalone.GoogleStandaloneManagerFactory
|
||||
</wroManagerFactory>
|
||||
<ignoreMissingResources>false</ignoreMissingResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>com.github.bringking</groupId>
|
||||
<artifactId>requirejs-maven-plugin</artifactId>
|
||||
<version>2.0.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>optimize</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<configFile>${basedir}/src/main/webapp/javascripts/build.js</configFile>
|
||||
<optimizerParameters>
|
||||
<parameter>dir=${project.build.directory}/${project.build.finalName}/javascripts</parameter>
|
||||
<parameter>skipDirOptimize=true</parameter>
|
||||
<parameter>keepBuildDir=true</parameter>
|
||||
</optimizerParameters>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
@ -350,13 +334,13 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<configuration>
|
||||
<packagingExcludes>
|
||||
**/*.log,*.iml,WEB-INF/script/,WEB-INF/test/,javascripts/*-min.js,stylesheets/*-min.css,javascripts/tests/**/*
|
||||
**/*.log,*.iml,WEB-INF/script/,WEB-INF/test/,javascripts/*-min.js,stylesheets/*-min.css,javascripts/tests/**/*,
|
||||
build/**,coffee/**,less/**,templates/**
|
||||
</packagingExcludes>
|
||||
<warSourceExcludes>
|
||||
**/*
|
||||
@ -377,6 +361,9 @@
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>start-dev-server</id>
|
||||
<properties>
|
||||
<gruntTask>dev</gruntTask>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@ -674,32 +661,6 @@
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<!-- experimental profile -->
|
||||
<id>js</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.kelveden</groupId>
|
||||
<artifactId>maven-karma-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
<configuration>
|
||||
<configFile>${basedir}/karma.conf.js</configFile>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>karma</id>
|
||||
<goals>
|
||||
<goal>start</goal>
|
||||
</goals>
|
||||
<phase>process-test-classes</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user