]> source.dussan.org Git - sonarqube.git/commitdiff
Enforce size of distribution to prevent regressions
authorEvgeny Mandrikov <mandrikov@gmail.com>
Tue, 4 Sep 2012 18:50:04 +0000 (00:50 +0600)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Tue, 4 Sep 2012 18:50:04 +0000 (00:50 +0600)
sonar-application/pom.xml

index 93c3f718267873e10d661d413b784e1b697f7f37..5c7123c128c340ab1d7d8e7e86f601d88204b4bd 100644 (file)
           </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>
       </build>
     </profile>
   </profiles>
+
 </project>