wget http://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt-launch/1.0.2/sbt-launch.jar
wget https://raw.githubusercontent.com/sbt/sbt/v1.0.2/src/main/conscript/screpl/launchconfig
sed -i '' -e's/1.0.0/1.0.2/' launchconfig
cat launchconfig
java -Xmx2G -jar sbt-launch.jar @launchconfig
[info] Set current project to ivy-console (in build file:/Users/kenji/.sbt/boot/ivy-console/)
[error] Not a valid command: console-quick (similar: ivy-console)
[error] Not a valid project ID: console-quick (similar: ivy-console)
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: console-quick (similar: consoleQuick, console, consoleProject)
[error] console-quick
[error] ^
Should work
sbt version: 1.0.2
capitalize or use sbt.Keys.consoleQuick.key.label ?
https://github.com/sbt/sbt/blob/v1.0.2/main/src/main/scala/sbt/internal/IvyConsole.scala#L55
--- a/main/src/main/scala/sbt/internal/IvyConsole.scala
+++ b/main/src/main/scala/sbt/internal/IvyConsole.scala
@@ -52,7 +52,7 @@ object IvyConsole {
depSettings)
val newStructure = Load.reapply(session.original ++ append, structure)
- val newState = state.copy(remainingCommands = Exec("console-quick", None) :: Nil)
+ val newState = state.copy(remainingCommands = Exec(Keys.consoleQuick.key.label, None) :: Nil)
Project.setProject(session, newStructure, newState)
}
I like sbt.Keys.consoleQuick.key.label better.
could someone help me understand why it broke?
how come console-quick can work in 0.13.x, but in 1.x, it needs to be changed to consoleQuick?
In sbt 0.13 camelCase was favour over "kebab-case", though kebab-case still worked. In sbt 1 that support was dropped.
Most helpful comment
I like
sbt.Keys.consoleQuick.key.labelbetter.