Skip to content

Commit 7d5d132

Browse files
authored
Merge pull request #2658 from SethTisue/shorten-sbt-answer
Revert "Scope of name"
2 parents 3e551f7 + 8463e5d commit 7d5d132

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

_overviews/FAQ/index.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -321,27 +321,7 @@ In many cases one should instead write:
321321

322322
ThisBuild / scalaVersion := "2.13.10"
323323

324-
Conversely, you should not write:
325-
326-
ThisBuild / name := "sample"
327-
328-
which will result in a warning:
329-
330-
[warn] there's a key that's not used by any other settings/tasks:
331-
[warn]
332-
[warn] * ThisBuild / name
333-
[warn] +- sample-project/build.sbt:11
334-
335-
For your quick single-project build with bare settings, the minimal settings are:
336-
337-
scalaVersion := "2.13.10"
338-
organization := "sampler"
339-
version := "0.1"
340-
name := "sample" // must not be scoped to ThisBuild
341-
342-
scalacOptions ++= Seq("-Werror", "-Xlint") // append to options
343-
344-
Other possible solutions to provide a setting everywhere include:
324+
Other possibilities include:
345325

346326
* the common settings pattern, where you put shared settings
347327
in a `val`, typically named `commonSettings`, and then

0 commit comments

Comments
 (0)