Skip to content

Commit

Permalink
Fix misconstruction of URI in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Nov 7, 2019
1 parent 20f430a commit 60e1992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbt-shading/src/main/scala/build/Shading.scala
Expand Up @@ -106,7 +106,7 @@ object Shading {

val properties = new java.util.HashMap[String, String]()
properties.put("create", "false")
val targetUri = java.net.URI.create(s"jar:file:${targetJar.toAbsolutePath.toString}")
val targetUri = java.net.URI.create(s"jar:file:${targetJar.toUri.getRawPath}")
val fs = FileSystems.newFileSystem(targetUri, properties)

try {
Expand Down

0 comments on commit 60e1992

Please sign in to comment.