From 09102e584419bc0a697f0bfdae5e065c8fac91d6 Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Tue, 12 Sep 2017 17:15:47 +0200 Subject: [PATCH] Remove sbt deprecation warning --- project/Build.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index a21f9db185d1..4978c3015e2d 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -228,9 +228,8 @@ object Build { .filterNot(_.get(artifact.key).exists(_.name == "dotty-library")) .map(_.data) - // This ScalaInstance#apply overload is deprecated in sbt 0.13, but the non-deprecated - // constructor in sbt 1.0 does not exist in sbt 0.13 - ScalaInstance(scalaVersion.value, libraryJar, compilerJar, otherDependencies: _*)(state.value.classLoaderCache.apply) + val loader = state.value.classLoaderCache(libraryJar :: compilerJar :: otherDependencies.toList) + new ScalaInstance(scalaVersion.value, loader, libraryJar, compilerJar, otherDependencies, None) } )