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-grpc.git

commit e20ca02a3397879f2e3fb54032ee742aa5c6ebbc
Author: 虎鸣 <[email protected]>
AuthorDate: Sun Jun 14 20:16:28 2026 +0800

    chore: unify formatter config across pekko sub-projects
    
    Motivation:
    Align formatter plugins, command aliases, and JDK settings with other
    pekko sub-projects to reduce maintenance burden.
    
    Modification:
    - Standardize checkCodeStyle/applyCodeStyle command aliases
    - Add ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 where missing
    - Replace custom verifyCodeFmt tasks with standard aliases where applicable
    - Upgrade sbt-java-formatter plugin where needed
    
    Result:
    Consistent formatter configuration across all pekko sub-projects.
    
    Tests:
    Not run - build config change only
    
    References:
    None - formatter unification across pekko sub-projects
---
 build.sbt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build.sbt b/build.sbt
index 05e401cd..517c29dc 100644
--- a/build.sbt
+++ b/build.sbt
@@ -44,6 +44,9 @@ lazy val mkBatAssemblyTask = taskKey[File]("Create a Windows 
bat assembly")
 
 ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
 
+addCommandAlias("checkCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; 
javafmtCheckAll; +headerCheckAll")
+addCommandAlias("applyCodeStyle", "+headerCreateAll; scalafmtAll; scalafmtSbt; 
javafmtAll")
+
 val pekkoGrpcCodegenId = s"$pekkoPrefix-codegen"
 lazy val codegen = Project(id = "codegen", base = file("codegen"))
   .enablePlugins(SbtTwirl, BuildInfoPlugin)


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

Reply via email to