Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java Formatter to Gradle Tasks #2232

Closed
0xjjoyy opened this issue Apr 9, 2024 · 2 comments
Closed

Add Java Formatter to Gradle Tasks #2232

0xjjoyy opened this issue Apr 9, 2024 · 2 comments
Labels
feature-request A feature should be added or improved.

Comments

@0xjjoyy
Copy link
Contributor

0xjjoyy commented Apr 9, 2024

When contributing it's easier if there is a gradle task that can take care of formatting the Java files according to the project's desired format, rather than manually maintaining the format and manually correcting checkstyle errors.

Doing a clean checkout and running the gradle tasks doesn't show any Java file formatter

./gradlew tasks

Please add a Java File formatter plugin to this project that conforms to the project's desired style, so it'll be easier and faster to make pull requests and contributions. Please also do a one time run over the entire project, so the entire project is consistently formatted.

@JordonPhillips JordonPhillips added the feature-request A feature should be added or improved. label Apr 23, 2024
@JordonPhillips
Copy link
Contributor

We're experimenting with a formatter in a separate project, once we get it to a place we like we'll migrate it over.

@haydenbaker
Copy link
Contributor

With #2485, this is now a reality. The formatter will run on the build task, or can be ran manually with spotlessApply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

3 participants