@@ -30,13 +30,12 @@ import java.nio.file.Paths
3030import cats .{`package` => _ }
3131import cats .data .Ior
3232import cats .implicits ._
33- import sbt .internal .inc .{ Analysis , MappedVirtualFile }
34- import sbt .internal .inc .classpath .ClasspathUtilities
33+ import sbt .internal .inc .Analysis
34+ import sbt .internal .inc .classpath .ClasspathUtil
3535import sbtbuildinfo .BuildInfoPlugin
3636import sbtbuildinfo .BuildInfoPlugin .autoImport ._
3737import xsbti .compile .CompileAnalysis
38-
39- import scala .jdk .CollectionConverters ._
38+ import _root_ .java .nio .file .Paths
4039
4140/** The exercise compiler SBT auto plugin */
4241object ExerciseCompilerPlugin extends AutoPlugin {
@@ -168,12 +167,12 @@ object ExerciseCompilerPlugin extends AutoPlugin {
168167
169168 val libraryClasspath = Attributed .data((fullClasspath in Compile ).value)
170169 val classpath = (Meta .compilerClasspath ++ libraryClasspath).distinct
171- val loader = ClasspathUtilities .toLoader(
172- classpath,
170+ val loader = ClasspathUtil .toLoader(
171+ classpath.map(file => Paths .get(file.getAbsolutePath())) ,
173172 null ,
174- ClasspathUtilities .createClasspathResources(
175- appPaths = Meta .compilerClasspath,
176- bootPaths = scalaInstance.value.allJars
173+ ClasspathUtil .createClasspathResources(
174+ appPaths = Meta .compilerClasspath.map(file => Paths .get(file.getAbsolutePath())) ,
175+ bootPaths = scalaInstance.value.allJars.map(file => Paths .get(file.getAbsolutePath()))
177176 )
178177 )
179178
0 commit comments