Added maven plugin to make builds reproducible; build.sh and build.bat now strip the compiled jar of any non-reproducable metadata; Removed Executable Bit from build.bat

This commit is contained in:
cyian-1756 2018-05-31 04:37:36 -04:00
parent 2ecffc3497
commit ea7573a975
3 changed files with 10 additions and 2 deletions

View File

@ -1 +1,2 @@
mvn clean compile assembly:single mvn clean compile assembly:single
mvn io.github.zlika:reproducible-build-maven-plugin:0.6:strip-jar

View File

@ -1,2 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mvn clean compile assembly:single mvn clean compile assembly:single
# Strip the jar of any non-reproducible metadata such as timestamps
mvn io.github.zlika:reproducible-build-maven-plugin:0.6:strip-jar

View File

@ -61,6 +61,11 @@
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>io.github.zlika</groupId>
<artifactId>reproducible-build-maven-plugin</artifactId>
<version>0.6</version>
</plugin>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<configuration> <configuration>