aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-checkstyle-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-01-09 12:38:54 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-01-09 12:54:10 +0400
commite517755fa01cb91a3bb7160b4c06e1ede56c248d (patch)
treec2978e095d5764b8a3278b3787f9b51ee81e3cd7 /plugins/sonar-checkstyle-plugin
parent37d3be75d6f52a7d9a831806b3031a23c7c0ef7d (diff)
downloadsonarqube-e517755fa01cb91a3bb7160b4c06e1ede56c248d.tar.gz
sonarqube-e517755fa01cb91a3bb7160b4c06e1ede56c248d.zip
SONAR-3150 Lock size of other plugins with dependencies
To prevent regressions for following plugins: * jacoco * checkstyle * squid java
Diffstat (limited to 'plugins/sonar-checkstyle-plugin')
-rw-r--r--plugins/sonar-checkstyle-plugin/pom.xml25
1 files changed, 24 insertions, 1 deletions
diff --git a/plugins/sonar-checkstyle-plugin/pom.xml b/plugins/sonar-checkstyle-plugin/pom.xml
index b1171ec63d3..f635022c05d 100644
--- a/plugins/sonar-checkstyle-plugin/pom.xml
+++ b/plugins/sonar-checkstyle-plugin/pom.xml
@@ -108,7 +108,30 @@
<![CDATA[Analyze Java code with <a href="http://checkstyle.sourceforge.net/">Checkstyle</a> ${checkstyle.version}.]]></pluginDescription>
</configuration>
</plugin>
-
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-plugin-size</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <phase>verify</phase>
+ <configuration>
+ <rules>
+ <requireFilesSize>
+ <maxsize>1100000</maxsize>
+ <minsize>1000000</minsize>
+ <files>
+ <file>${project.build.directory}/${project.build.finalName}.jar</file>
+ </files>
+ </requireFilesSize>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<!-- Running JUnit tests in parallel -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>