Skip to content

Commit a0513b0

Browse files
authored
Make logLevel invisible (#20253)
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 ```
1 parent 86e2fe5 commit a0513b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/Build.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ object Build {
10851085
scalacOptions += "-Yscala2Unpickler:never",
10861086
scalacOptions += "-Yno-experimental",
10871087
scalacOptions -= "-Xfatal-warnings",
1088-
Compile / compile / logLevel := Level.Error,
1088+
Compile / compile / logLevel.withRank(KeyRanks.Invisible) := Level.Error,
10891089
ivyConfigurations += SourceDeps.hide,
10901090
transitiveClassifiers := Seq("sources"),
10911091
libraryDependencies +=

0 commit comments

Comments
 (0)