File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
sentry-samples/sentry-samples-spring-boot Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,15 @@ tasks.shadowJar {
141141 if (! baseDir.exists()) return @doLast
142142 val uri = URI .create(" jar:${jarFile.toURI()} " )
143143 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
144- baseDir.walkTopDown().filter { it.isFile }.forEach { merged ->
145- val relative = merged.relativeTo(baseDir).path
146- val target = fs.getPath(relative)
147- if (target.parent != null ) Files .createDirectories(target.parent)
148- Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
149- }
144+ baseDir
145+ .walkTopDown()
146+ .filter { it.isFile }
147+ .forEach { merged ->
148+ val relative = merged.relativeTo(baseDir).path
149+ val target = fs.getPath(relative)
150+ if (target.parent != null ) Files .createDirectories(target.parent)
151+ Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
152+ }
150153 }
151154 }
152155}
You can’t perform that action at this time.
0 commit comments