Skip to content

Fix Spotless failure on a clean checkout - #2319

Merged
conor10 merged 1 commit into
mainfrom
fix/spotless-check-2318
Sep 28, 2026
Merged

conor10 merged 1 commit into
mainfrom
fix/spotless-check-2318

Conversation

@conor10

@conor10 conor10 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Applies the existing Spotless Java rules to 17 files: four runnable example assets and 13 library/test files. Changes consist of required license headers, import ordering, line wrapping, whitespace, and removal of one unused import. Formatter rules and source coverage are preserved.

Fixes #2318.

Where should the reviewer start?

Start with the example assets under .agents/skills/web3j/assets/ and codegen/src/test/java/org/web3j/codegen/StructDynamicArrayDecodeTest.java, which gain license headers. The remaining changes are formatter output. All 17 formatted files match the formatting cleanup already included in #2315; this PR isolates that repair from the release-workflow changes.

Why is it needed?

On current main (241aca294a47de5957ebe4002e37da86aa431e21), ./gradlew check encounters a failing :spotlessJavaCheck because these tracked Java files do not comply with the configured formatter. Applying the existing rules clears that formatting gate.

Validation

  • Reproduced the reported failure with ./gradlew --no-daemon :spotlessJavaCheck before the change.
  • Applied ./gradlew --no-daemon :spotlessJavaApply.
  • ./gradlew --no-daemon spotlessCheck passes across all modules: 121 actionable tasks, 118 executed and 3 up-to-date.
  • git diff --check passes.
  • Used the repository's Gradle 9.0.0 wrapper and Temurin Java 21.0.12.1.
  • Full check and runtime tests were not rerun for this formatting-only change.

Checklist

  • I've read the contribution guidelines.
  • Tests assessed: no new tests needed for formatting-only changes; existing formatting checks pass.
  • Changelog assessed: no entry needed for formatting-only changes.

Signed-off-by: Conor Svensson <conor10@gmail.com>

@conor10 conor10 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.

@conor10
conor10 merged commit 45ae717 into main Sep 28, 2026
6 checks passed
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.

Gradle check fails after cloning the repository

1 participant