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

He-Pin pushed a commit to branch unify-formatter-config
in repository https://gitbox.apache.org/repos/asf/pekko-http.git

commit d03d6a36f10257410561285dd655689190cedfd4
Author: 虎鸣 <[email protected]>
AuthorDate: Sun Jun 14 20:10:49 2026 +0800

    chore: unify formatter config across pekko sub-projects
    
    Motivation:
    Align sbt-java-formatter plugin and build aliases with other pekko
    sub-projects to reduce maintenance burden.
    
    Modification:
    - Upgrade sbt-java-formatter from com.lightbend.sbt 0.7.0 to
      com.github.sbt 0.12.0 (matching other sub-projects)
    - Add ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
    - Rename verifyCodeStyle alias to checkCodeStyle for consistency
    
    Result:
    pekko-http now uses the same formatter plugin versions and command
    aliases as pekko core and other sub-projects.
    
    Tests:
    Not run - build config change only
    
    References:
    None - formatter unification across pekko sub-projects
---
 build.sbt           | 4 +++-
 project/plugins.sbt | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/build.sbt b/build.sbt
index eb89f47f8..582de8281 100644
--- a/build.sbt
+++ b/build.sbt
@@ -24,7 +24,9 @@ sourceDistIncubating := false
 
 ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo
 
-addCommandAlias("verifyCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; 
+headerCheckAll; javafmtCheckAll")
+ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
+
+addCommandAlias("checkCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; 
+headerCheckAll; javafmtCheckAll")
 addCommandAlias("applyCodeStyle", "+headerCreateAll; scalafmtAll; scalafmtSbt; 
javafmtAll")
 addCommandAlias(name = "sortImports", value = ";scalafixEnable; scalafixAll 
SortImports; scalafmtAll")
 
diff --git a/project/plugins.sbt b/project/plugins.sbt
index f5e798500..ca46c1e1f 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -30,7 +30,7 @@ addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.32")
 addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.6")
 addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.13")
 addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.4.7")
-addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0")
+addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.12.0")
 addSbtPlugin("com.github.sbt.junit" % "sbt-jupiter-interface" % "0.19.0")
 
 // used in ValidatePullRequest to check github PR comments whether to build 
all subprojects


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

Reply via email to