This is an automated email from the ASF dual-hosted git repository.

He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-management.git


The following commit(s) were added to refs/heads/main by this push:
     new 61903eb9 build: fix sbt lint warnings by excluding unused keys (#834)
61903eb9 is described below

commit 61903eb9d0ea3414615be4a0d5d0d16d532c7acf
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Tue Jun 16 18:23:28 2026 +0800

    build: fix sbt lint warnings by excluding unused keys (#834)
    
    Motivation:
    sbt lint reported 51 unused keys across sub-projects: autoAPIMappings
    and projectInfoVersion in 25+ modules, plus previewPath in docs.
    
    Modification:
    - Add autoAPIMappings and projectInfoVersion to excludeLintKeys in
      project/Common.scala globalSettings
    - Add Global / excludeLintKeys += previewPath in build.sbt docs project
    
    Result:
    sbt load no longer reports any unused key warnings.
    
    Tests:
    - sbt "clean; compile" - zero warnings
    
    References:
    None - build configuration cleanup
---
 build.sbt            | 1 +
 project/Common.scala | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/build.sbt b/build.sbt
index ce3a3d15..67b4ba47 100644
--- a/build.sbt
+++ b/build.sbt
@@ -338,6 +338,7 @@ lazy val docs = project
     Preprocess / preprocessRules := Seq(
       ("\\.java\\.scala".r, _ => ".java")),
     previewPath := (Paradox / siteSubdirName).value,
+    Global / excludeLintKeys += previewPath,
     paradoxGroups := Map("Language" -> Seq("Java", "Scala")),
     Paradox / siteSubdirName := s"docs/pekko-management/${if 
(isSnapshot.value) "snapshot" else version.value}",
     Compile / paradoxProperties ++= Map(
diff --git a/project/Common.scala b/project/Common.scala
index 036ae24b..1187419e 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -26,6 +26,9 @@ object Common extends AutoPlugin {
 
   val isScala3 = Def.setting(scalaBinaryVersion.value == "3")
 
+  override def globalSettings =
+    Seq(excludeLintKeys ++= Set(autoAPIMappings, projectInfoVersion))
+
   override lazy val projectSettings: Seq[sbt.Def.Setting[?]] =
     Seq(
       startYear := Some(2022),


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to