aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-09-05 00:50:04 +0600
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-09-05 00:50:04 +0600
commit4408b4f540307ed56802152722db6e9d0c7b26a1 (patch)
treeaf975418fe2eda349d59e34e474a82502d1d78e6
parent69da96fb7f02be9564d52b571ef18c18a1c1d060 (diff)
downloadsonarqube-4408b4f540307ed56802152722db6e9d0c7b26a1.tar.gz
sonarqube-4408b4f540307ed56802152722db6e9d0c7b26a1.zip
Enforce size of distribution to prevent regressions
-rw-r--r--sonar-application/pom.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/sonar-application/pom.xml b/sonar-application/pom.xml
index 93c3f718267..5c7123c128c 100644
--- a/sonar-application/pom.xml
+++ b/sonar-application/pom.xml
@@ -47,6 +47,30 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-distribution-size</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <phase>verify</phase>
+ <configuration>
+ <rules>
+ <requireFilesSize>
+ <maxsize>54000000</maxsize>
+ <minsize>52000000</minsize>
+ <files>
+ <file>${project.build.directory}/sonar-${project.version}.zip</file>
+ </files>
+ </requireFilesSize>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<dependencies>
@@ -218,4 +242,5 @@
</build>
</profile>
</profiles>
+
</project>