commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject incubator-commonsrdf git commit: several improvements to the build for preparing a release, including cleanner assembly, signing and checksums generation
Date Thu, 07 May 2015 14:06:01 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master 609ac646e -> e0d24bc77


several improvements to the build for preparing a release, including cleanner assembly, signing
and checksums generation


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/e0d24bc7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/e0d24bc7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/e0d24bc7

Branch: refs/heads/master
Commit: e0d24bc7760c23ec2b5d10c63396aff9881b4423
Parents: 609ac64
Author: Sergio Fernández <wikier@apache.org>
Authored: Thu May 7 16:05:51 2015 +0200
Committer: Sergio Fernández <wikier@apache.org>
Committed: Thu May 7 16:05:51 2015 +0200

----------------------------------------------------------------------
 pom.xml                   | 70 +++++++++++++++++++++++++++++++++++++++++-
 src/main/assembly/src.xml |  6 ++++
 2 files changed, 75 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e0d24bc7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b864a86..54ca9c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -231,6 +231,7 @@
     </dependencyManagement>
 
     <build>
+        <finalName>apache-commons-rdf</finalName>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -297,7 +298,6 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-release-plugin</artifactId>
-                <version>2.4</version>
                 <configuration>
                     <useReleaseProfile>false</useReleaseProfile>
                     <goals>deploy</goals>
@@ -306,6 +306,7 @@
                     <tagNameFormat>@{version}</tagNameFormat>
                     <preparationGoals>clean install</preparationGoals>
                     <pushChanges>false</pushChanges>
+                    <connectionUrl>scm:git:file://`pwd`/.git</connectionUrl>
                 </configuration>
             </plugin>
             <!-- Create code coverage reports and submit them to coveralls.io. -->
@@ -435,4 +436,71 @@
         </pluginManagement>
     </build>
 
+    <profiles>
+        <profile>
+            <id>release</id>
+            <!-- extends the release profile from commons -->
+            <build>
+                <plugins>
+                    <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>
+                                <configuration>
+                                    <excludes>
+                                        <exclude>**/*.asc</exclude>
+                                        <exclude>**/*.md5</exclude>
+                                        <exclude>**/*.sha1</exclude>
+                                    </excludes>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>default-cli</id>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <phase>package</phase>
+                                <configuration>
+                                    <tasks>
+                                        <checksum algorithm="MD5" fileext=".md5">
+                                            <fileset dir="${project.build.directory}">
+                                                <include name="*.zip" />
+                                                <include name="*.tar.gz" />
+                                            </fileset>
+                                        </checksum>
+                                        <checksum algorithm="SHA1" fileext=".sha1">
+                                            <fileset dir="${project.build.directory}">
+                                                <include name="*.zip" />
+                                                <include name="*.tar.gz" />
+                                            </fileset>
+                                        </checksum>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.apache.ant</groupId>
+                                <artifactId>ant-nodeps</artifactId>
+                                <version>1.8.1</version>
+                            </dependency>
+                        </dependencies>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e0d24bc7/src/main/assembly/src.xml
----------------------------------------------------------------------
diff --git a/src/main/assembly/src.xml b/src/main/assembly/src.xml
index c04a35d..35e7077 100644
--- a/src/main/assembly/src.xml
+++ b/src/main/assembly/src.xml
@@ -26,12 +26,18 @@
             <directory>${project.basedir}</directory>
             <outputDirectory></outputDirectory>
             <excludes>
+                <exclude>**/*~</exclude>
+                <exclude>pom.xml.*</exclude>
+                <exclude>prelease.properties</exclude>
                 <exclude>examples/**</exclude>
                 <exclude>**/target/**</exclude>
                 <exclude>**/.*/**</exclude>
                 <exclude>**/*.iml</exclude>
                 <exclude>**/*.ipr</exclude>
                 <exclude>**/*.iws</exclude>
+                <exclude>.project</exclude>
+                <exclude>.classpath</exclude>
+                <exclude>.metadata</exclude>
                 <exclude>atlassian-ide-plugin.xml</exclude>
             </excludes>
         </fileSet>


Mime
View raw message