Skip to content

build: enforce Java formatting with Spotless - #7

Merged
omer-cengel merged 2 commits into
masterfrom
chore/enforce-java-formatting
Sep 16, 2026
Merged

omer-cengel merged 2 commits into
masterfrom
chore/enforce-java-formatting

Conversation

@omer-cengel

Copy link
Copy Markdown
Member

Summary

Add deterministic Java formatting with Spotless and enforce it both during Maven validation and on pull requests targeting master.

Changes

  • configure Spotless Maven Plugin 3.10.2 with Eclipse 4.40
  • add a repository-owned four-space Eclipse formatter profile
  • remove unused imports, enforce the approved import order, forbid wildcard imports, trim trailing whitespace, and require final newlines
  • bind spotless:check to Maven's validate phase while keeping spotless:apply manual
  • reformat maintained production and test Java sources
  • document the Java formatting policy and remediation workflow
  • add a pull-request workflow that runs Spotless with Temurin Java 21 and Maven dependency caching
  • pin reusable GitHub Actions to immutable commit SHAs
  • use read-only permissions, disable persisted checkout credentials, cancel superseded runs, and enforce a bounded timeout

Scope and non-goals

This change affects Java formatting and its build and pull-request enforcement only. It does not change runtime behavior, generated APIs, SQL parameter or selected-column ordering, or Java text-block values.

The workflow does not run the test suite, rewrite source files, add push or scheduled triggers, introduce matrices or artifacts, configure dependency updates, or change branch-protection settings.

@omer-cengel
omer-cengel merged commit fa99090 into master Sep 16, 2026
1 check passed
@omer-cengel
omer-cengel deleted the chore/enforce-java-formatting branch September 16, 2026 21:41
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.

1 participant