mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-02 16:05:29 +00:00
Partially Revert "Fix stupid build error and a couple gradle warnings"
This reverts commit 77812545df6304ccc04dd129b8ea953deaac40b3.
This commit is contained in:
parent
4dfe2054e9
commit
540552d301
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user