Skip to content

Gradle Spotless Integration for Java Formatting? #243

@jtgoen

Description

@jtgoen

My project is planning to move toward integrating the gradle spotless plugin into our workflow, and have gotten to the point where we can apply our spotless configuration to our Java code via pre-commit hook as well as direct invocation via gradle and their VSCode Plugin.

Many of us on the project use NetBeans, and were hoping to integrate our spotless setup into the editor workflow via e.g. format on save, etc with this plugin.

However, looking at the overview page it seems that while applying formatters directly that spotless allows us to leverage through configuration (e.g. Google formatter, eclipse, Spring, etc) is supported, it doesn't look like there's direct spotless support for Java through this plugin?

I only ask since it seems spotless is being leveraged successfully for DBeaver SQL formatting, so maybe it's easier than it seems to integrate for Java?

Let me know if this is already supported and I'm just not understanding something, or if supporting this would be too significant a lift.

Thanks!

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions