Sbt1
⚠️ Experimental
To fix the sbt build sources of your build use sbtfix_:
-
Install semanticdb-sbt
-
Start a new sbt shell session or inside an active shell run
> reload
-
> sbtfix Sbt1
-
Note that the command is sbtfix to run on your sbt build sources.
To fix sources of an sbt 0.13 plugin use scalafix:
-
Install the
semanticdb-sbt
compiler plugin to your sbt 0.13 plugin:// build.sbt lazy val my210project = project.settings( scalaVersion := "2.10.6", // semanticdb-sbt only supports 2.10.6 addCompilerPlugin( "org.scalameta" % "semanticdb-sbt" % "@V.semanticdbSbt" cross CrossVersion.full ) )
-
Run
my210project/scalafix Sbt1
-
Note that the command is scalafix to run on regular project sources.
// before
x <+= (y in Compile)
// after
x += (y in Compile).value
Change | Status |
---|---|
<+= |
Done |
<++= |
Done |
<<= |
Done |
extends Build |
Not handled, refer to the migration guide |
(task1, task2).map |
Not handled, refer to the migration guide |