Skip to content

build: remove stale scalafix dependency from docs module#1113

Merged
raboof merged 1 commit into
mainfrom
worktree-fix-issue-925-sbt-clean-scalafix
Jun 30, 2026
Merged

build: remove stale scalafix dependency from docs module#1113
raboof merged 1 commit into
mainfrom
worktree-fix-issue-925-sbt-clean-scalafix

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 30, 2026

Copy link
Copy Markdown
Member

Motivation

sbt clean fails with IllegalArgumentException: Cannot add dependency 'org.apache.pekko#pekko-http-scalafix-rules_2.13;...' to configuration 'scalafix' of module org.apache.pekko#pekko-http-docs_2.13;... because this configuration doesn't exist!.

The docs module disables ScalafixPlugin via .disablePlugins(ScalafixPlugin), which means the scalafix Ivy configuration is never created. However, .dependsOn(...) still references httpScalafixRules % ScalafixConfig, causing Ivy to fail when resolving the dependency graph — even during sbt clean (which triggers cleanIvy).

Modification

Remove the unused httpScalafixRules % ScalafixConfig dependency from the docs module's .dependsOn(...). The docs module does not use scalafix rules, so this dependency was a leftover from copy-pasted configuration.

Result

sbt clean no longer crashes on the docs module due to a missing Ivy configuration. The build graph resolves correctly.

Tests

Not run - build configuration only

References

Fixes #925

Motivation:
`sbt clean` fails with `IllegalArgumentException: Cannot add dependency
... to configuration 'scalafix' ... because this configuration doesn't
exist!` because the `docs` module disables `ScalafixPlugin` but still
declares `httpScalafixRules % ScalafixConfig` in `.dependsOn(...)`.

Modification:
Remove the unused `httpScalafixRules % ScalafixConfig` dependency from
the `docs` module. The docs module does not use scalafix rules.

Result:
`sbt clean` no longer fails on the docs module due to a missing Ivy
configuration.

Tests:
Not run - build configuration only

References:
Fixes #925
@He-Pin He-Pin requested a review from raboof June 30, 2026 19:02
@raboof raboof merged commit ca3bb4c into main Jun 30, 2026
5 checks passed
@He-Pin He-Pin deleted the worktree-fix-issue-925-sbt-clean-scalafix branch July 1, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'sbt clean' trips over scalafix

2 participants