-
Notifications
You must be signed in to change notification settings - Fork 51
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
Spotless plugin #107
Spotless plugin #107
Conversation
Generate changelog in
|
…lugin w/o spotless on the classpath
It's sad that gradle-palantir-java-format now has to depend on the spotless plugin (not compileOnly), but this seems to be the only straightforward way to configure that plugin. |
Update: was able to make it work with compileOnly - it's trickier to set this up when testing, but when using the plugin, since all the dependencies are resolved together, this will just work. |
Released 0.3.9 |
Before this PR
Logic for how to format a project with PJF is coupled between palantir-java-format and gradle-baseline.
This makes it hard for users to apply the formatter gradle plugin directly, because it needs the wiring from
com.palantir.baseline-format
to actually set up all the formatting tasks.After this PR
==COMMIT_MSG==
Move spotless configuration logic into a new plugin
com.palantir.java-format-spotless
. The maincom.palantir.java-format
plugin now applies both the spotless and idea plugins too.==COMMIT_MSG==
Possible downsides?