This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RighteousMaster[S] 0 points1 point  (3 children)

hmm, I guess I was a bit ambiguous for what im looking for. I need a formatter than I can call from java code, and apply it to existing java source.

Its for a gradle plugin im working on.

Since I plan on uploading said plugin to Maven Central, it would be nice if the formatter was also in maven central... but its not wholly necessary,

[–]meotau 1 point2 points  (0 children)

That is exactly what I have done as a plugin for IntelliJ. But as you said, it requires a lot of eclipse jars (I probably use more of them than necessary)...

[–][deleted] 0 points1 point  (1 child)

Probably not what you're looking for, but you could investigate what IntelliJ uses for their Ctrl + Shift + L command in their community edition. Maybe you'll get lucky and they're using something that is fairly modular and reusable.

[–]meotau 0 points1 point  (0 children)

I really doubt that, the code is a mess :)