Deprecate implicit RootProject/LocalProject calls on URI/File/String

Builds are using explicit calls anyway, so reduce the implicits.
This commit is contained in:
Mark Harrah 2013-07-10 18:15:30 -04:00
parent 7278fbc567
commit 0507a2a1a9
1 changed files with 6 additions and 0 deletions

View File

@ -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)
}