]> source.dussan.org Git - archiva.git/commitdiff
add a modernizer maven plugin build profile
authorOlivier Lamy <olamy@apache.org>
Wed, 15 Oct 2014 03:03:46 +0000 (14:03 +1100)
committerOlivier Lamy <olamy@apache.org>
Wed, 15 Oct 2014 03:03:46 +0000 (14:03 +1100)
pom.xml

diff --git a/pom.xml b/pom.xml
index dde2b62b911c3f456a82b22da26cf9886e088963..36ccc03b9255b4df4447e84f27d2eb5639a01aff 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <jacocoagent>${jacocoproperty}</jacocoagent>
       </properties>
     </profile>
+    <profile>
+      <id>modernizer</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.gaul</groupId>
+            <artifactId>modernizer-maven-plugin</artifactId>
+            <version>1.1.0</version>
+            <configuration>
+              <javaVersion>1.8</javaVersion>
+            </configuration>
+            <executions>
+              <execution>
+                <id>modernizer</id>
+                <goals>
+                  <goal>modernizer</goal>
+                </goals>
+                <phase>process-test-classes</phase>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
   <repositories>