From 513c2df9f9d4fdb583d37b309ba78c4d8eec992e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Gidiere?= Date: Fri, 17 Nov 2023 11:05:28 -0700 Subject: [PATCH] fix building for real this time --- buildSrc/src/main/kotlin/DistributionConfig.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/DistributionConfig.kt b/buildSrc/src/main/kotlin/DistributionConfig.kt index 12c3fc84c..8c262e729 100644 --- a/buildSrc/src/main/kotlin/DistributionConfig.kt +++ b/buildSrc/src/main/kotlin/DistributionConfig.kt @@ -1,7 +1,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar +import io.papermc.paperweight.util.path import java.io.File import java.io.FileWriter -import java.net.URI import java.net.URL import java.nio.file.FileSystems import org.gradle.api.DefaultTask @@ -46,7 +46,8 @@ fun Project.configureDistribution() { doLast { // https://github.com/johnrengelman/shadow/issues/111 - val dest = URI.create("jar:" + tasks.named("shadowJar").get().archiveFile.get().asFile.toURI()) + val dest = tasks.named("shadowJar").get().archiveFile.get().path + FileSystems.newFileSystem(dest, mapOf("create" to "false"), null).use { fs -> forSubProjects(":common:addons") {