[2.x] Deprecate url(...)

**Problem**
In sbt 2.x url already reaturns URI, but it's somewhat confusing.

**Solution**
Deprecate it instead.
This commit is contained in:
Eugene Yokota 2026-07-10 11:10:56 -04:00
parent b426b50dbb
commit 8bac5b9a82
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ package object sbt
// IO
def uri(s: String): URI = new URI(s)
def file(s: String): File = new File(s)
@deprecated("Use uri(...) instead", "2.0.2")
def url(s: String): URI = new URI(s)
implicit def fileToRichFile(file: File): sbt.io.RichFile = new sbt.io.RichFile(file)
implicit def filesToFinder(cc: Iterable[File]): sbt.io.PathFinder =