diff --git a/build.gradle.kts b/build.gradle.kts index adbea8f..a6a5a0e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -160,9 +160,6 @@ val downgradeJar17 = tasks.register("downgradeJar17") { } tasks.jar { - isPreserveFileTimestamps = false - isReproducibleFileOrder = true - from(rootProject.file("LICENSE")) { rename { "${it}_${rootProject.name}" } } @@ -170,7 +167,7 @@ tasks.jar { finalizedBy(tasks.downgradeJar, downgradeJar17) } -val sourcesJar: Jar = tasks.withType()["sourcesJar"].apply { +val sourcesJar = tasks.getByName("sourcesJar") { from(rootProject.file("LICENSE")) { rename { "${it}_${rootProject.name}" } } @@ -197,6 +194,11 @@ tasks.withType { } } +tasks.withType { + isPreserveFileTimestamps = false + isReproducibleFileOrder = true +} + githubRelease { setToken(providers.environmentVariable("GITHUB_TOKEN")) setTagName(versionTagName)