ludo_rj
ludo_rj

Reputation: 3934

Formatting build.gradle automatically

Does a nice API exist to format gradle files with specific configuration (tabs, indentation,...) ? I had a look over org.hibernate.tools java formatter, but there is no mean to handle files except java sources.

Upvotes: 2

Views: 2375

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123890

You'll need a tool that can handle Groovy sources, such as IntelliJ or Eclipse (with Groovy plugin). I'm not aware of a command line tool or API for formatting Groovy sources, but perhaps a web search will turn up something.

Upvotes: 1

Related Questions