How do you comment a line in .sbt file
Asked Answered
C

1

25

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?

Cyanic answered 24/9, 2016 at 10:3 Comment(0)
E
34

// 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.

Esdraelon answered 24/9, 2016 at 10:6 Comment(1)
Your answer was the easiest thing to find.Monachism

© 2022 - 2024 — McMap. All rights reserved.