Repository navigation
build: enforce google-java-format with a spotless check gate - #73
Merged
Merged
Conversation
One-time normalization with google-java-format 1.22.0 (GOOGLE style) plus unused-import removal across the published modules (workflow-engine, spring-boot-starter). No logic changes: the diff is line wrapping, continuation indents, import ordering and javadoc reflow. This is the canonical state enforced by the spotless check gate added in the next commit. Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
spotless-maven-plugin 2.46.1 with google-java-format 1.22.0 (GOOGLE style) and unused-import removal. spotless:check binds to validate in every module, so mvn verify and the release pipeline fail on non-canonical formatting. The samples demo module opts out via spotless.skip: the gate covers the published modules (workflow-engine, spring-boot-starter); vendor adapter code stays outside it. Run mvn spotless:apply for one-touch formatting. Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Formatting was previously maintained by hand and drifted between
mainanddev(see #71's convergence commit). This adds a tool-enforced gate so that class of drift cannot reappear.style: apply google-java-format— one-time normalization of the published modules (workflow-engine, spring-boot-starter) with google-java-format 1.22.0 (GOOGLE style) plus unused-import removal. Line wrapping, continuation indents, import ordering and javadoc reflow only; no logic changes.build: add spotless google-java-format check gate— spotless-maven-plugin 2.46.1,spotless:checkbound tovalidatein every module, somvn verifyand the release pipeline fail on non-canonical formatting. The samples demo module opts out viaspotless.skip(vendor adapter code stays outside the gate). Local one-touch formatting:mvn spotless:apply.Verified with the full
mvn -B clean verifygate (including the new check) locally.