Reformats Java source code to comply with Google Java Style
...The formatter can be used in software that generates java to output more legible java code. Just include the library in your maven/gradle/etc. configuration. A google-java-format IntelliJ plugin is available from the plugin repository. To install it, go to your IDE's settings and select the Plugins category. Click the Marketplace tab, search for the google-java-format plugin, and click the Install button.
If you want to verify your Maven project (library) can also work in Android, you can use animal-sniffer-maven-plugin to check the API against the desired API level. Android Scents will be pushed to Maven Central in groupid "net.sf.androidscents.signature".