Skip to content

Commit

Permalink
Make logLevel invisible (#20253)
Browse files Browse the repository at this point in the history
To silence this warning when opening SBT:

```
[warn] there are 2 keys that are not used by any other settings/tasks:
[warn]  
[warn] * scala2-library-bootstrapped / Compile / compile / logLevel
[warn]   +- /Users/mbovel/dotty/project/Build.scala:1083
[warn] * scala2-library-cc / Compile / compile / logLevel
[warn]   +- /Users/mbovel/dotty/project/Build.scala:1083
[warn]  
[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key
```
  • Loading branch information
mbovel authored Apr 25, 2024
1 parent 86e2fe5 commit a0513b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ object Build {
scalacOptions += "-Yscala2Unpickler:never",
scalacOptions += "-Yno-experimental",
scalacOptions -= "-Xfatal-warnings",
Compile / compile / logLevel := Level.Error,
Compile / compile / logLevel.withRank(KeyRanks.Invisible) := Level.Error,
ivyConfigurations += SourceDeps.hide,
transitiveClassifiers := Seq("sources"),
libraryDependencies +=
Expand Down

0 comments on commit a0513b0

Please sign in to comment.