mirror of https://github.com/sbt/sbt.git
Merge pull request #3193 from dwijnand/better-toError-migration-notes
Better toError migration notes [ci skip]
This commit is contained in:
commit
b5cc77ef75
|
|
@ -31,7 +31,8 @@ We are working with Scala Center to provide [an automatic migration tool][sbt-mi
|
|||
- Drops deprecated `seq(..)` DSL method. Use `Seq` or pass in the settings without wrapping.
|
||||
- Drops deprecated `File`/`Seq[File]` setting enrichments. Use `.value` and `Def.setting`.
|
||||
- Drops deprecated `SubProcess` `apply` overload. Use `SubProcess(ForkOptions(runJVMOptions = ..))`.
|
||||
- Drops `toError(o: Option[String]): Unit` in favour of `o foreach sys.error`.
|
||||
- Drops `toError(opt: Option[String]): Unit` (equivalent to `opt foreach sys.error`); if used to wrap
|
||||
`ScalaRun#run` then the replacement is `scalaRun.run(...).failed foreach (sys error _.getMessage)`
|
||||
- A number of the methods on `sbt.Path` (such as `relativeTo` and `rebase` and `flat`) are now no longer in the
|
||||
default namespace by virtue of being mixed into the sbt package object. Use `sbt.io.Path` to access them
|
||||
again.
|
||||
|
|
|
|||
Loading…
Reference in New Issue