mirror of https://github.com/sbt/sbt.git
1.7 KiB
1.7 KiB
Migration notes
- Build definition is based on Scala 2.12.1
- Build.scala style builds are gone. Use multi-project
build.sbt. Project(...)constructor is restricted down to two parameters. Useprojectinstead.sbt.Pluginis also gone. Use auto plugins.- The incremental compiler, called Zinc, uses class-based name hashing.
- Zinc drops support for Scala 2.8.x, 2.9.x., 2.11.1 and below.
- Removed the pre-0.13.7 *.sbt file parser (previously available under
-Dsbt.parser.simple=true) - Removed old, hyphen-separated key names (use
publishLocalinstead ofpublish-local) - Removes no-longer-documented old operators
<<=,<+=, and<++=. - Renames early command feature from
--<command>toearly(<command>). - Log options
-error,-warn,-info,-debugare added as shorthand for"early(error)"etc. sbt.Processandsbt.ProcessExtraare gone. Usescala.sys.processinstead.incOptions.value.withNameHashing(...)option is removed.TestResult.Valueis nowTestResult.- the scripted plugin is cross-versioned now, so you must use %% when depending on it
- Removed the methods settingsSets from Project (along with add/setSbtFiles)
- Dropped deprecated InputTask apply method and inputTask DSL method - replace with
Def.inputTask&Def.spaceDelimited().parsed - Dropped deprecated ProjectReference implicit lifts - replace with
RootProject(<uri>),RootProject(<file>)orLocalProject(<string>) - Dropped deprecated seq DSL method - replace with
Seqor just enumerate without wrapping - Dropped deprecated File/Seq[File] setting enrichments - replace with
.valueandDef.setting - Dropped deprecated SubProcess apply overload - replace with
SubProcess(ForkOptions(runJVMOptions = ..))