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-dynamodb.git
commit f616c3b05644b85ffef3ecd3b23c301c962a2807 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 | 5 +++++ project/plugins.sbt | 1 + 2 files changed, 6 insertions(+) diff --git a/build.sbt b/build.sbt index deddaa5..cd4ecf4 100644 --- a/build.sbt +++ b/build.sbt @@ -19,6 +19,11 @@ sourceDistIncubating := false ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo +ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 + +addCommandAlias("checkCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; javafmtCheckAll; +headerCheckAll") +addCommandAlias("applyCodeStyle", "+headerCreateAll; scalafmtAll; scalafmtSbt; javafmtAll") + Test / unmanagedSourceDirectories ++= { if (scalaVersion.value.startsWith("2.")) { Seq( diff --git a/project/plugins.sbt b/project/plugins.sbt index 34c4cdc..73cae0a 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -10,6 +10,7 @@ addSbtPlugin("com.github.sbt" % "sbt-header" % "5.11.0") addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.1") +addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.12.0") addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.13") addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.4.7") addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1") --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
