From a0513b0ce5701d1f4078b4d567ce16aac1b43c19 Mon Sep 17 00:00:00 2001 From: Matt Bovel Date: Thu, 25 Apr 2024 13:08:21 +0200 Subject: [PATCH] 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 ``` --- project/Build.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Build.scala b/project/Build.scala index 8142e5e0744d..f4c5dfe01338 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -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 +=