Partially Revert "Fix stupid build error and a couple gradle warnings"

This reverts commit 77812545df6304ccc04dd129b8ea953deaac40b3.
This commit is contained in:
Zoë Gidiere 2023-11-13 15:22:09 -07:00
parent 4dfe2054e9
commit 540552d301

View File

@ -48,17 +48,7 @@ fun Project.configureDistribution() {
// https://github.com/johnrengelman/shadow/issues/111
val dest = URI.create("jar:" + tasks.named<ShadowJar>("shadowJar").get().archiveFile.get().asFile.toURI())
val preExistingProvider = try {
FileSystems.getFileSystem(dest)
} catch (e: Exception) {
null
};
val provider = if (preExistingProvider == null) {
preExistingProvider
} else {
FileSystems.newFileSystem(dest, mapOf("create" to "false"), null)
};
provider?.use { fs ->
FileSystems.newFileSystem(dest, mapOf("create" to "false"), null).use { fs ->
forSubProjects(":common:addons") {
val jar = getJarTask()