From ebe7d5848898ca126c029733f393878e502677cf Mon Sep 17 00:00:00 2001 From: Adam Strickland Date: Mon, 21 Oct 2024 21:48:22 -0400 Subject: [PATCH] wip --- build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e034295a..3966592e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -48,9 +48,10 @@ java { withSourcesJar() } -tasks.wrapper { +tasks.withType { doFirst { - val sha256Sum = URL("$distributionUrl.sha256").readText() + val sha256Sum = uri("$distributionUrl.sha256").toURL().readText() + propertiesFile.appendText("distributionSha256Sum=${sha256Sum}\n") println("Added checksum to wrapper properties") }