You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by sz...@apache.org on 2018/11/23 14:47:40 UTC
flume git commit: FLUME-3183 Maven: generate SHA-512 checksum during
deploy
Repository: flume
Updated Branches:
refs/heads/trunk 7419f05ee -> 85e0b4e64
FLUME-3183 Maven: generate SHA-512 checksum during deploy
Addung SHA-512 checksum generation to maven
Removed deprecated checksums
Updated documentation
This closes #247
Reviewers: Endre Major, Peter Turcsanyi
(Ferenc Szabo via Ferenc Szabo)
Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/85e0b4e6
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/85e0b4e6
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/85e0b4e6
Branch: refs/heads/trunk
Commit: 85e0b4e646b838e471c43d8bcb08d4cc724ff866
Parents: 7419f05
Author: Ferenc Szabo <sz...@apache.org>
Authored: Fri Nov 23 15:47:14 2018 +0100
Committer: Ferenc Szabo <sz...@apache.org>
Committed: Fri Nov 23 15:47:14 2018 +0100
----------------------------------------------------------------------
dev-docs/HowToRelease.md | 15 +++++++++++++--
dev-support/sign-checksum-artifact.sh | 6 ++----
flume-ng-dist/pom.xml | 29 +++++++++++++++++++++++++++++
pom.xml | 12 ++++++++++++
4 files changed, 56 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flume/blob/85e0b4e6/dev-docs/HowToRelease.md
----------------------------------------------------------------------
diff --git a/dev-docs/HowToRelease.md b/dev-docs/HowToRelease.md
index 388b73d..8110885 100644
--- a/dev-docs/HowToRelease.md
+++ b/dev-docs/HowToRelease.md
@@ -249,6 +249,17 @@ And commit the changes.
### Generating and signing the source artifacts
+Generation of the source artifact is created by the maven-assembly-plugin in the package phase.
+Signing is done by the maven-gpg-plugin using the `sign` profile in the verify phase
+Checksum generation for the source and binary artifacts is done by checksum-maven-plugin
+in the verify phase, an SHA512 checksum is generated
+
+ mvn clean package -Psign -DskipTests
+
+The generated artifacts can be found in the `flume-ng-dist/target` directory
+
+If you would like to create it manually, the previous process is:
+
There is a script in the Flume source tree for generating and signing the Flume
source artifacts. Once the release candidate is tagged, generate the source
release with the following steps.
@@ -349,7 +360,7 @@ will have a numeric id associated with it that will be used later
$ cd public_html
$ mkdir apache-flume-X.Y.Z-rcN
$ cd apache-flume-X.Y.Z-rcN
- $ wget --no-check-certificate https://repository.apache.org/content/repositories/orgapacheflume-XXXX/org/apache/flume/flume-ng-dist/X.Y.Z/flume-ng-dist-X.Y.Z-bin.tar.gz{,.{asc,md5,sha1}}
+ $ wget --no-check-certificate https://repository.apache.org/content/repositories/orgapacheflume-XXXX/org/apache/flume/flume-ng-dist/X.Y.Z/flume-ng-dist-X.Y.Z-bin.tar.gz{,.{asc,sha512}}
$ for file in flume-ng-dist-*; do mv $file $(echo $file | sed -e "s/flume-ng-dist/apache-flume/g");done
@@ -371,7 +382,7 @@ Send an email to dev@flume.apache.org list. For example,
*** Please cast your vote within the next 72 hours ***
- The tarball (*.tar.gz), signature (*.asc), and checksums (*.md5, *.sha1)
+ The tarball (*.tar.gz), signature (*.asc), and checksums (*.sha512)
for the source and binary artifacts can be found here:
https://people.apache.org/~mpercy/flume/apache-flume-X.Y.Z-RC1/
http://git-wip-us.apache.org/repos/asf/flume/blob/85e0b4e6/dev-support/sign-checksum-artifact.sh
----------------------------------------------------------------------
diff --git a/dev-support/sign-checksum-artifact.sh b/dev-support/sign-checksum-artifact.sh
old mode 100755
new mode 100644
index 253c7df..272089b
--- a/dev-support/sign-checksum-artifact.sh
+++ b/dev-support/sign-checksum-artifact.sh
@@ -36,11 +36,9 @@ fi
# The tools we need.
GPG=$(find_in_path gpg)
-MD5=$(find_in_path md5sum md5)
-SHA1=$(find_in_path sha1sum shasum)
+SHA512=$(find_in_path sha512sum)
# Now sign and checksum the artifact.
set -x
$GPG --sign $ARTIFACT
-$MD5 < $ARTIFACT > $ARTIFACT.md5
-$SHA1 < $ARTIFACT > $ARTIFACT.sha1
+$SHA512 < $ARTIFACT > $ARTIFACT.sha512
http://git-wip-us.apache.org/repos/asf/flume/blob/85e0b4e6/flume-ng-dist/pom.xml
----------------------------------------------------------------------
diff --git a/flume-ng-dist/pom.xml b/flume-ng-dist/pom.xml
index 3e74f02..bcd8b72 100644
--- a/flume-ng-dist/pom.xml
+++ b/flume-ng-dist/pom.xml
@@ -54,6 +54,35 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>net.nicoulaj.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>checksum</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>files</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <algorithms>
+ <algorithm>SHA-512</algorithm>
+ </algorithms>
+ <attachChecksums>true</attachChecksums>
+ <csvSummary>false</csvSummary>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}</directory>
+ <includes>
+ <include>*.tar.gz</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ <failIfNoFiles>false</failIfNoFiles><!-- usually, no file to do checksum: don't consider error -->
+ </configuration>
+ </plugin>
</plugins>
</build>
http://git-wip-us.apache.org/repos/asf/flume/blob/85e0b4e6/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 57d1d90..c646207 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,6 +91,7 @@ limitations under the License.
<mvn-assembly-plugin.version>3.1.0</mvn-assembly-plugin.version>
<mvn-build-helper-plugin>3.0.0</mvn-build-helper-plugin>
<mvn-checkstyle-plugin.version>3.0.0</mvn-checkstyle-plugin.version>
+ <mvn-checksum-plugin.version>1.7</mvn-checksum-plugin.version>
<mvn-clean-plugin.version>3.1.0</mvn-clean-plugin.version>
<mvn-compiler-plugin.version>3.8.0</mvn-compiler-plugin.version>
<mvn-gpg-plugin.version>1.6</mvn-gpg-plugin.version>
@@ -468,6 +469,11 @@ limitations under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${mvn-gpg-plugin.version}</version>
+ <configuration>
+ <excludes>
+ <exclude>**/*.sha512</exclude>
+ </excludes>
+ </configuration>
</plugin>
<plugin>
@@ -670,6 +676,12 @@ limitations under the License.
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>net.nicoulaj.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <version>${mvn-checksum-plugin.version}</version>
+ </plugin>
</plugins>
</pluginManagement>