From 0507a2a1a9be5006b6ffb4dee3318796b70fe290 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 10 Jul 2013 18:15:30 -0400 Subject: [PATCH] Deprecate implicit RootProject/LocalProject calls on URI/File/String Builds are using explicit calls anyway, so reduce the implicits. --- main/settings/src/main/scala/sbt/Reference.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/settings/src/main/scala/sbt/Reference.scala b/main/settings/src/main/scala/sbt/Reference.scala index 21d1b195e..f970d5eb2 100644 --- a/main/settings/src/main/scala/sbt/Reference.scala +++ b/main/settings/src/main/scala/sbt/Reference.scala @@ -98,7 +98,13 @@ object Reference case BuildRef(b) => Some(b) case _ => None } + + @deprecated("Explicitly wrap the URI in a call to RootProject.", "0.13.0") implicit def uriToRef(u: URI): ProjectReference = RootProject(u) + + @deprecated("Explicitly wrap the File in a call to RootProject.", "0.13.0") implicit def fileToRef(f: File): ProjectReference = RootProject(f) + + @deprecated("Explicitly wrap the String in a call to LocalProject.", "0.13.0") implicit def stringToReference(s: String): ProjectReference = LocalProject(s) } \ No newline at end of file