Merge pull request #641 from cyian-1756/reproducibleBuilds
Made builds reproducible Failed test due to twitter rate limiting.
This commit is contained in:
commit
60bdde44f8
@ -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
|
2
build.sh
2
build.sh
@ -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
|
2
patch.py
2
patch.py
@ -77,6 +77,8 @@ subprocess.call(['git', 'commit', '-m', commitMessage])
|
|||||||
subprocess.call(['git', 'tag', nextVersion])
|
subprocess.call(['git', 'tag', nextVersion])
|
||||||
print("Building ripme")
|
print("Building ripme")
|
||||||
subprocess.call(["mvn", "clean", "compile", "assembly:single"])
|
subprocess.call(["mvn", "clean", "compile", "assembly:single"])
|
||||||
|
print("Stripping jar")
|
||||||
|
subprocess.call(["mvn", "io.github.zlika:reproducible-build-maven-plugin:0.6:strip-jar"])
|
||||||
print("Hashing .jar file")
|
print("Hashing .jar file")
|
||||||
openedFile = open("./target/ripme-{}-jar-with-dependencies.jar".format(nextVersion), "rb")
|
openedFile = open("./target/ripme-{}-jar-with-dependencies.jar".format(nextVersion), "rb")
|
||||||
readFile = openedFile.read()
|
readFile = openedFile.read()
|
||||||
|
5
pom.xml
5
pom.xml
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user