prevent another error
All checks were successful
Publish to snapshot maven / build (push) Successful in 21s

This commit is contained in:
moehreag 2024-06-11 03:16:11 +02:00
parent 181462f0b4
commit 5f74d32c1a

View file

@ -36,10 +36,12 @@ object Nester {
}.get() }.get()
path.createDirectories() path.createDirectories()
val target = path.resolve(location.file.fileName.toString()) val target = path.resolve(location.file.fileName.toString())
Files.copy(location.file, target) if (target.notExists()) {
files.add( Files.copy(location.file, target)
NestedJar(location.modId, target.absolute().toString()) files.add(
) NestedJar(location.modId, target.absolute().toString())
)
}
} }
} }
configuration.resolvedConfiguration.firstLevelModuleDependencies.forEach { dep -> configuration.resolvedConfiguration.firstLevelModuleDependencies.forEach { dep ->
@ -135,4 +137,4 @@ class NestedJar(val id: String, val path: String){
config.add("path", path) config.add("path", path)
return config return config
} }
} }