Skip to content

Commit 199cd0b

Browse files
committed
Make builds reproducible
Signed-off-by: Alexander Brandes <mc.cache@web.de>
1 parent dae825d commit 199cd0b

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repositories {
2626
}
2727

2828
dependencies {
29-
compileOnly("com.arcaniax:HeadDatabase-API:1.3.1")
29+
compileOnly("com.arcaniax:HeadDatabase-API:1.3.2")
3030
}
3131
```
3232

@@ -36,7 +36,7 @@ dependencies {
3636
<dependency>
3737
<groupId>com.arcaniax</groupId>
3838
<artifactId>HeadDatabase-API</artifactId>
39-
<version>1.3.1</version>
39+
<version>1.3.2</version>
4040
<scope>provided</scope>
4141
</dependency>
4242
```

build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ tasks {
6363
"implNote:a:Implementation Note:"
6464
)
6565
opt.links("https://jd.papermc.io/paper/1.20/")
66+
opt.noTimestamp()
67+
}
68+
69+
withType<AbstractArchiveTask>().configureEach {
70+
isPreserveFileTimestamps = false
71+
isReproducibleFileOrder = true
6672
}
6773
}
6874

@@ -72,7 +78,7 @@ java {
7278
}
7379

7480
signing {
75-
if (!version.toString().endsWith("-SNAPSHOT")) {
81+
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
7682
val signingKey: String? by project
7783
val signingPassword: String? by project
7884
useInMemoryPgpKeys(signingKey, signingPassword)

0 commit comments

Comments
 (0)