Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 978 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 978 Bytes

Goethe is a code formatter library for square/javapoet using palantir-java-format.

The palantir-java-format that this library uses is shaded into a nested package to prevent coupling between human-generated code formatting and validation, and components which generate code automatically.

Usage

Formatting a javapoet JavaFile as a String:

String formatted = Goethe.formatAsString(javaFile);

Formatting a JavaFile while writing it to an annotation processing Filer:

Goethe.formatAndEmit(javaFile, filer);

Gradle Tasks

./gradlew tasks - to get the list of gradle tasks

Start Developing

Run one of the following commands:

  • ./gradlew idea for IntelliJ
  • ./gradlew eclipse for Eclipse