You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2021/10/06 10:22:30 UTC

[shardingsphere] branch master updated: Add checksum-maven-plugin for distribution (#12908)

This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new af27835  Add checksum-maven-plugin for distribution (#12908)
af27835 is described below

commit af27835ef76310261a2420ddcb5ab2df85d72016
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Wed Oct 6 18:21:53 2021 +0800

    Add checksum-maven-plugin for distribution (#12908)
---
 pom.xml                                            | 28 ++++++++++++++++++++++
 .../shardingsphere-jdbc-distribution/pom.xml       |  4 ++++
 .../shardingsphere-proxy-distribution/pom.xml      |  4 ++++
 .../shardingsphere-scaling-distribution/pom.xml    |  4 ++++
 .../shardingsphere-src-distribution/pom.xml        |  4 ++++
 5 files changed, 44 insertions(+)

diff --git a/pom.xml b/pom.xml
index af71d7f..ac5f886 100644
--- a/pom.xml
+++ b/pom.xml
@@ -141,6 +141,7 @@
         <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
         <dockerfile-maven.version>1.4.13</dockerfile-maven.version>
         <docker-compose-maven-plugin.version>4.0.0</docker-compose-maven-plugin.version>
+        <checksum-maven-plugin.version>1.10</checksum-maven-plugin.version>
 
         <maven.deploy.skip>false</maven.deploy.skip>
     </properties>
@@ -696,6 +697,33 @@
                     <artifactId>docker-compose-maven-plugin</artifactId>
                     <version>${docker-compose-maven-plugin.version}</version>
                 </plugin>
+                <plugin>
+                    <groupId>net.nicoulaj.maven.plugins</groupId>
+                    <artifactId>checksum-maven-plugin</artifactId>
+                    <version>${checksum-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>artifacts</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <appendFilename>true</appendFilename>
+                        <algorithms>
+                            <algorithm>SHA-512</algorithm>
+                        </algorithms>
+                        <fileSets>
+                            <fileSet>
+                                <includes>
+                                    <include>*.tar.gz</include>
+                                    <include>*.zip</include>
+                                </includes>
+                            </fileSet>
+                        </fileSets>
+                    </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
diff --git a/shardingsphere-distribution/shardingsphere-jdbc-distribution/pom.xml b/shardingsphere-distribution/shardingsphere-jdbc-distribution/pom.xml
index 591e7f9..b275b5b 100644
--- a/shardingsphere-distribution/shardingsphere-jdbc-distribution/pom.xml
+++ b/shardingsphere-distribution/shardingsphere-jdbc-distribution/pom.xml
@@ -86,6 +86,10 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>net.nicoulaj.maven.plugins</groupId>
+                        <artifactId>checksum-maven-plugin</artifactId>
+                    </plugin>
                 </plugins>
             </build>
         </profile>
diff --git a/shardingsphere-distribution/shardingsphere-proxy-distribution/pom.xml b/shardingsphere-distribution/shardingsphere-proxy-distribution/pom.xml
index 1580d76..c74c39c 100644
--- a/shardingsphere-distribution/shardingsphere-proxy-distribution/pom.xml
+++ b/shardingsphere-distribution/shardingsphere-proxy-distribution/pom.xml
@@ -76,6 +76,10 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>net.nicoulaj.maven.plugins</groupId>
+                        <artifactId>checksum-maven-plugin</artifactId>
+                    </plugin>
                 </plugins>
             </build>
         </profile>
diff --git a/shardingsphere-distribution/shardingsphere-scaling-distribution/pom.xml b/shardingsphere-distribution/shardingsphere-scaling-distribution/pom.xml
index 8fc6124..b74e95d 100644
--- a/shardingsphere-distribution/shardingsphere-scaling-distribution/pom.xml
+++ b/shardingsphere-distribution/shardingsphere-scaling-distribution/pom.xml
@@ -76,6 +76,10 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>net.nicoulaj.maven.plugins</groupId>
+                        <artifactId>checksum-maven-plugin</artifactId>
+                    </plugin>
                 </plugins>
             </build>
         </profile>
diff --git a/shardingsphere-distribution/shardingsphere-src-distribution/pom.xml b/shardingsphere-distribution/shardingsphere-src-distribution/pom.xml
index c02a8f6..6d1f23c 100644
--- a/shardingsphere-distribution/shardingsphere-src-distribution/pom.xml
+++ b/shardingsphere-distribution/shardingsphere-src-distribution/pom.xml
@@ -50,6 +50,10 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>net.nicoulaj.maven.plugins</groupId>
+                        <artifactId>checksum-maven-plugin</artifactId>
+                    </plugin>
                 </plugins>
             </build>
         </profile>