Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you comment a line in .sbt file

This may sound like a stupid question, but I've been searching all over the internet on how to comment a line in an sbt file. Does anyone know how to?

like image 644
pythonic Avatar asked Sep 24 '16 10:09

pythonic


1 Answers

// creates the comment. It is rather easy to find.

Edit: An sbt build file uses Scala syntax with some DSL on top of it. As per documentation:

Each Setting is defined with a Scala expression. The expressions in settings are independent of one another, and they are expressions, rather than complete Scala statements.

So if you wonder what for instance lazy val root means you should rather search Scala documentation (or SO) for the answer.

On the other hand many "operators" (like +=, :=) are the part of sbt's DSL - they simply methods explained to some degree in the settings section.

like image 173
MirMasej Avatar answered Oct 14 '22 23:10

MirMasej