Skip to content

Commit 118dd63

Browse files
committed
Make builds reproducible
Signed-off-by: Alexander Brandes <mc.cache@web.de>
1 parent 53c79d0 commit 118dd63

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

.github/stale.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/upload-release-assets-.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
distribution: temurin
1717
cache: gradle
1818
java-version: 17
19-
- name: Upload to Modrinth and Hangar
20-
run: ./gradlew clean build modrinth publishAllPublicationsToHangar
19+
- name: Upload to Modrinth
20+
run: ./gradlew clean build modrinth
2121
env:
2222
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
2323
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}

build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ configurations.all {
6262
}
6363

6464
group = "com.intellectualsites.fastasyncvoxelsniper"
65-
version = "3.1.1-SNAPSHOT"
65+
version = "3.1.1"
6666

6767
bukkit {
6868
name = "FastAsyncVoxelSniper"
@@ -100,6 +100,12 @@ tasks {
100100
opt.addBooleanOption("html5", true)
101101
opt.links("https://jd.papermc.io/paper/1.20/")
102102
opt.links("https://intellectualsites.github.io/fastasyncworldedit-javadocs/worldedit-core/")
103+
opt.noTimestamp()
104+
}
105+
106+
withType<AbstractArchiveTask>().configureEach {
107+
isPreserveFileTimestamps = false
108+
isReproducibleFileOrder = true
103109
}
104110

105111
shadowJar {
@@ -131,7 +137,7 @@ javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElement
131137
}
132138

133139
signing {
134-
if (!version.toString().endsWith("-SNAPSHOT")) {
140+
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
135141
val signingKey: String? by project
136142
val signingPassword: String? by project
137143
useInMemoryPgpKeys(signingKey, signingPassword)

0 commit comments

Comments
 (0)