Skip to content

Commit

Permalink
clean thing up
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Aug 6, 2024
1 parent 2fde59d commit 85f7806
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,14 @@ val downgradeJar17 = tasks.register<DowngradeJar>("downgradeJar17") {
}

tasks.jar {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true

from(rootProject.file("LICENSE")) {
rename { "${it}_${rootProject.name}" }
}

finalizedBy(tasks.downgradeJar, downgradeJar17)
}

val sourcesJar: Jar = tasks.withType<Jar>()["sourcesJar"].apply {
val sourcesJar = tasks.getByName<Jar>("sourcesJar") {
from(rootProject.file("LICENSE")) {
rename { "${it}_${rootProject.name}" }
}
Expand All @@ -197,6 +194,11 @@ tasks.withType<JavaCompile> {
}
}

tasks.withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}

githubRelease {
setToken(providers.environmentVariable("GITHUB_TOKEN"))
setTagName(versionTagName)
Expand Down

0 comments on commit 85f7806

Please sign in to comment.