The GitHub Actions job "Scalafmt" on pekko.git/refactor/replace-sort-imports-with-organize-imports has failed. Run started by GitHub user He-Pin (triggered by He-Pin).
Head commit for run: ba97a4b0d78d2af68cbb62606c5652dbe0023148 / 虎鸣 <[email protected]> refactor: replace sort-imports plugin with scalafix OrganizeImports Motivation: The com.nequissimus:sort-imports:0.6.1 plugin has not been updated since December 2021 and is effectively unmaintained. Scalafix's built-in OrganizeImports rule (available since 0.11.0) is more powerful, actively maintained, and requires no external dependency. Modification: - Replace SortImports rule with OrganizeImports in .scalafix.conf, configured with 10 import groups matching Pekko's existing style (java/javax, scala, third-party, com.sun, pekko/akka, reactivestreams, netty, scalatest, slf4j, typesafe) - Remove SortImports from .scalafmt.conf rewrite.rules to avoid conflict - Remove com.nequissimus:sort-imports:0.6.1 dependency from ScalaFixExtraRulesPlugin - Update sortImports command alias in build.sbt, ScalaFixForJdk21Plugin, and ScalafixForMultiNodePlugin to use OrganizeImports - Add -Wunused:imports compiler option for Scala 2.13 and Scala 3 to support OrganizeImports.removeUnused - Disable RemoveUnused.imports (conflicts with OrganizeImports) and enable OrganizeImports.removeUnused instead - Apply full project import reformatting (main + test sources) Result: Import sorting now uses scalafix's built-in OrganizeImports rule with no external dependency. The sortImports command continues to work as before, now also removing unused imports automatically. Tests: - sbt "Test / compile" passed with Java 21 References: None - build tooling improvement Report URL: https://github.com/apache/pekko/actions/runs/29271687768 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
