From 8463e5dca05585e0023bc5767a0a449cca363f1b Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Sun, 11 Dec 2022 17:34:22 -0800 Subject: [PATCH] Revert "Scope of name" This reverts commit f19728cccca2d94782c2cd044aca4546815e2aab. --- _overviews/FAQ/index.md | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/_overviews/FAQ/index.md b/_overviews/FAQ/index.md index f38f691bc5..6179c57098 100644 --- a/_overviews/FAQ/index.md +++ b/_overviews/FAQ/index.md @@ -321,27 +321,7 @@ In many cases one should instead write: ThisBuild / scalaVersion := "2.13.10" -Conversely, you should not write: - - ThisBuild / name := "sample" - -which will result in a warning: - - [warn] there's a key that's not used by any other settings/tasks: - [warn] - [warn] * ThisBuild / name - [warn] +- sample-project/build.sbt:11 - -For your quick single-project build with bare settings, the minimal settings are: - - scalaVersion := "2.13.10" - organization := "sampler" - version := "0.1" - name := "sample" // must not be scoped to ThisBuild - - scalacOptions ++= Seq("-Werror", "-Xlint") // append to options - -Other possible solutions to provide a setting everywhere include: +Other possibilities include: * the common settings pattern, where you put shared settings in a `val`, typically named `commonSettings`, and then