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-persistence-jdbc.git

commit b48a18f4d468e7e21df662af5dc7134702b2f102
Author: 虎鸣 <[email protected]>
AuthorDate: Sun Jun 14 20:16:29 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 | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/build.sbt b/build.sbt
index 758d2f10..4e9351d7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -21,6 +21,8 @@ val mimaCompareVersion = "1.0.0"
 
 ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo
 
+ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
+
 lazy val `pekko-persistence-jdbc` = project
   .in(file("."))
   .enablePlugins(ScalaUnidocPlugin)
@@ -127,9 +129,5 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>
   s
 }
 
-TaskKey[Unit]("verifyCodeFmt") := {
-  
javafmtCheckAll.all(ScopeFilter(inAnyProject)).result.value.toEither.left.foreach
 { _ =>
-    throw new MessageOnlyException(
-      "Unformatted Java code found. Please run 'javafmtAll' and commit the 
reformatted code")
-  }
-}
+addCommandAlias("checkCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; 
javafmtCheckAll; +headerCheckAll")
+addCommandAlias("applyCodeStyle", "+headerCreateAll; scalafmtAll; scalafmtSbt; 
javafmtAll")


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

Reply via email to