Skip to content

Commit 2516575

Browse files
authored
Merge pull request #3107 from allanrenucci/sbt
Remove sbt deprecation warning
2 parents 6fdb17f + 09102e5 commit 2516575

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

project/Build.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,8 @@ object Build {
228228
.filterNot(_.get(artifact.key).exists(_.name == "dotty-library"))
229229
.map(_.data)
230230

231-
// This ScalaInstance#apply overload is deprecated in sbt 0.13, but the non-deprecated
232-
// constructor in sbt 1.0 does not exist in sbt 0.13
233-
ScalaInstance(scalaVersion.value, libraryJar, compilerJar, otherDependencies: _*)(state.value.classLoaderCache.apply)
231+
val loader = state.value.classLoaderCache(libraryJar :: compilerJar :: otherDependencies.toList)
232+
new ScalaInstance(scalaVersion.value, loader, libraryJar, compilerJar, otherDependencies, None)
234233
}
235234
)
236235

0 commit comments

Comments
 (0)