@@ -9,8 +9,9 @@ import coursier.cache.FileCache
99import coursier .core .Version as Ver
1010import coursier .util .Task
1111
12- import java .io .File
13- import java .nio .file .{AtomicMoveNotSupportedException , FileAlreadyExistsException , Files , Paths }
12+ import java .nio .file .{
13+ AtomicMoveNotSupportedException , FileAlreadyExistsException , Files , Path , Paths
14+ }
1415import java .util .Random
1516
1617import scala .build .internal .Util
@@ -131,7 +132,7 @@ final case class SharedCompilationServerOptions(
131132 dir
132133 }
133134
134- private def bspSocketFile (directories : => scala.build.Directories ): File = {
135+ private def bspSocketFile (directories : => scala.build.Directories ): Path = {
135136 val (socket, deleteOnExit) = bloopBspSocket match {
136137 case Some (path) =>
137138 (os.Path (path, Os .pwd), false )
@@ -153,7 +154,7 @@ final case class SharedCompilationServerOptions(
153154 Files .deleteIfExists(socket.toNIO)
154155 }
155156 )
156- socket.toIO.getCanonicalFile
157+ socket.toIO.getCanonicalFile.toPath
157158 }
158159
159160 def defaultBspSocketOrPort (
@@ -261,8 +262,8 @@ final case class SharedCompilationServerOptions(
261262 .getOrElse(directories.bloopWorkingDir)
262263 val baseConfig = BloopRifleConfig .default(
263264 address,
264- v => Bloop .bloopClassPath(logger, cache, v),
265- workingDir.toIO
265+ v => Bloop .bloopClassPath(logger, cache, v).map(_.map(_.toPath)) ,
266+ workingDir.toNIO
266267 )
267268
268269 baseConfig.copy(
0 commit comments