]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Add release profile to sign and deploy javadoc
authorEric Hartmann <hartmann.eric@gmail.com>
Tue, 12 Mar 2013 07:29:01 +0000 (08:29 +0100)
committerEric Hartmann <hartmann.eric@gmail.com>
Tue, 12 Mar 2013 07:29:01 +0000 (08:29 +0100)
pom.xml

diff --git a/pom.xml b/pom.xml
index 376564544f46e3f22ce99356899aac89eca11ab6..20c328efa9c020c7d8474908b72999aefd2305bc 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <sonar.buildVersion>3.5-RC3</sonar.buildVersion>
     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
   </properties>
+
+  <profiles>
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>attach-javadocs</id>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-gpg-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>sign-artifacts</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>