Skip to content

Commit

Permalink
Removed checksum-maven-plugin in favour of a simple bash script which…
Browse files Browse the repository at this point in the history
… signs everything.
  • Loading branch information
csterling committed Feb 24, 2020
1 parent 90a62c2 commit 0cebace
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,24 +229,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
<configuration>
<algorithms>
<algorithm>SHA-512</algorithm>
</algorithms>
<attachChecksums>true</attachChecksums>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down
11 changes: 11 additions & 0 deletions sign.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Change to the Maven repository
cd ~/.m2/repository/org/apache/samoa

for filename in $(find . -not -name '*.sha512' -and -not -name '*.asc' -and -not -name '*_remote.repositories'); do
if [ ! -f $filename.sha512 ] && [ ! -d $filename ]; then
echo $filename
gpg --print-md SHA512 $filename > $filename.sha512
fi
done

0 comments on commit 0cebace

Please sign in to comment.