Skip to content

Switch in-repo formatting to simple local gradle task#628

Closed
ZacSweers wants to merge 5 commits into
facebook:mainfrom
ZacSweers:z/fixGradle
Closed

Switch in-repo formatting to simple local gradle task#628
ZacSweers wants to merge 5 commits into
facebook:mainfrom
ZacSweers:z/fixGradle

Conversation

@ZacSweers

Copy link
Copy Markdown
Contributor

The previous setup of using the ktfmt Gradle plugin but backdooring in the local ktfmt was finicky and resulting periodic stale runs and prone to ABI breakages. This switches the repo to just run a simple local JavaExec that consumes the compiler artifact directly. This way it's always aligned and doesn't get dinged by Gradle hacks.

Running this also caught and fixed a number of formatting issues on main!

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 13, 2026
@ZacSweers

Copy link
Copy Markdown
Contributor Author

the codeql failure seems like a CI issue?

@hick209

hick209 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Yeah, I need to fix this codeql thing, don't worry about it.

Great set of changes here. I sent you some comments on slack about it

@ZacSweers

Copy link
Copy Markdown
Contributor Author

Fixed the merge conflicts!

@meta-codesync

meta-codesync Bot commented Jun 22, 2026

Copy link
Copy Markdown

@hick209 has imported this pull request. If you are a Meta employee, you can view this in D109300825.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 6497811 Jun 22, 2026
@meta-codesync meta-codesync Bot added the Merged label Jun 22, 2026
@meta-codesync

meta-codesync Bot commented Jun 22, 2026

Copy link
Copy Markdown

@hick209 merged this pull request in 6497811.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants