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-persistence-cassandra.git
The following commit(s) were added to refs/heads/main by this push:
new f2cb5c1 chore: unify formatter config across pekko sub-projects (#420)
f2cb5c1 is described below
commit f2cb5c1906faa503062b1d43758220c99e786e3a
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sun Jun 14 21:47:03 2026 +0800
chore: unify formatter config across pekko sub-projects (#420)
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 1165187..fefe53a 100644
--- a/build.sbt
+++ b/build.sbt
@@ -21,6 +21,9 @@ ThisBuild / reproducibleBuildsCheckResolver :=
Resolver.ApacheMavenStagingRepo
ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
ThisBuild / evictionErrorLevel := Level.Info
+addCommandAlias("checkCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck;
javafmtCheckAll; +headerCheckAll")
+addCommandAlias("applyCodeStyle", "+headerCreateAll; scalafmtAll; scalafmtSbt;
javafmtAll")
+
lazy val root = project
.in(file("."))
.enablePlugins(Common, ScalaUnidocPlugin)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]