This is an automated email from the ASF dual-hosted git repository.
snlee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 98ef340 Add maven-gpg-plugin and checksum-maven-plugin (#3776)
98ef340 is described below
commit 98ef3409abf3d753fab497b076e3f6ad2f0f7e59
Author: Seunghyun Lee <[email protected]>
AuthorDate: Fri Feb 1 15:02:32 2019 -0800
Add maven-gpg-plugin and checksum-maven-plugin (#3776)
When we create an Apache release, we need to include
checksum file and the artifact has to be signed.
Running the following command will build source and
binary tarbells, sign them and generate checksums.
mvn install -Psrc-dist,bin-dist,sign -DskipTests
Output will be *.tar.gz, *.asc, *.sha512 files
---
pinot-distribution/pom.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/pinot-distribution/pom.xml b/pinot-distribution/pom.xml
index b43696e..760e85b 100644
--- a/pinot-distribution/pom.xml
+++ b/pinot-distribution/pom.xml
@@ -85,6 +85,37 @@
<artifactId>pinot-tools</artifactId>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>net.nicoulaj.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>files</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <fileSets>
+ <fileSet>
+ <directory>${pinot.root}/pinot-distribution/target</directory>
+ <includes>
+ <include>*-src.tar.gz</include>
+ <include>*-bin.tar.gz</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ <failIfNoFiles>false</failIfNoFiles>
+ <algorithms>
+ <algorithm>SHA-512</algorithm>
+ </algorithms>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<profiles>
<profile>
<id>src-dist</id>
@@ -146,5 +177,26 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>sign</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]