File tree 1 file changed +1
-21
lines changed 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -321,27 +321,7 @@ In many cases one should instead write:
321
321
322
322
ThisBuild / scalaVersion := "2.13.10"
323
323
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:
345
325
346
326
* the common settings pattern, where you put shared settings
347
327
in a ` val ` , typically named ` commonSettings ` , and then
You can’t perform that action at this time.
0 commit comments