For example, I have to write an alias like this:
addCommandAlias("make-idea", ";updateClassifiers; updateSbtClassifiers; gen-idea sbt-classifiers")
Instead of
addCommandAlias("make-idea", "updateClassifiers; updateSbtClassifiers; gen-idea sbt-classifiers")
If I skip the first semicolon, sbt will complain.. Does anyone have ideas about what does the first ;
in the second argument of addCommandAlias
do?
The simple build tool (sbt) is used for building Java and Scala projects; its purpose is to allow users to skillfully perform the basics of building and to customize endlessly.
You can use Pretty Clean to clean the all of dev tools caches including SBT. PrettyClean also cleans the SBT project's target folder.
Running the command, "sbt sbt-version" will simply output your current directory and the version number.
This is just sbt's syntax to specify multiple commands. This is normal sbt CLI behavior and is not specific to addCommandAlias
.
The same happens in the sbt shell:
sbt> updateClassifiers; updateSbtClassifiers; gen-idea sbt-classifiers
[error] Expected ID character
// etc.
sbt> ; updateClassifiers; updateSbtClassifiers; gen-idea sbt-classifiers
// as expected
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With