Skip to content

Commit

Permalink
Make builds reproducible
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Brandes <mc.cache@web.de>
  • Loading branch information
NotMyFault committed Apr 21, 2024
1 parent 53c79d0 commit 118dd63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/upload-release-assets-.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
distribution: temurin
cache: gradle
java-version: 17
- name: Upload to Modrinth and Hangar
run: ./gradlew clean build modrinth publishAllPublicationsToHangar
- name: Upload to Modrinth
run: ./gradlew clean build modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
Expand Down
10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ configurations.all {
}

group = "com.intellectualsites.fastasyncvoxelsniper"
version = "3.1.1-SNAPSHOT"
version = "3.1.1"

bukkit {
name = "FastAsyncVoxelSniper"
Expand Down Expand Up @@ -100,6 +100,12 @@ tasks {
opt.addBooleanOption("html5", true)
opt.links("https://jd.papermc.io/paper/1.20/")
opt.links("https://intellectualsites.github.io/fastasyncworldedit-javadocs/worldedit-core/")
opt.noTimestamp()
}

withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}

shadowJar {
Expand Down Expand Up @@ -131,7 +137,7 @@ javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElement
}

signing {
if (!version.toString().endsWith("-SNAPSHOT")) {
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
Expand Down

0 comments on commit 118dd63

Please sign in to comment.