Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Builds are using explicit calls anyway, so reduce the implicits.
  • Loading branch information...
commit 0507a2a1a9be5006b6ffb4dee3318796b70fe290 1 parent 7278fbc
@harrah harrah authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 main/settings/src/main/scala/sbt/Reference.scala
View
6 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)
}
Please sign in to comment.
Something went wrong with that request. Please try again.