This is just a suggestion due to some troubles that the users is having when trying to integrate Ktlint via Gradle into their projects.
Specify the root build.gradle: An Android project has at least two build.gradle file, so I think that is a nice idea to specify the gradle file to use Ktlint.
Remove the apply plugin: "java": First, it seems to be redundant the usage of the java plugin if we are using a Kotlin linter into a Kotlin project. Second it doesn't seem to work.
Will do. Thank you, Filipe!
NOTE to self: in addition to the above add https://proandroiddev.com/making-your-gradle-tasks-incremental-7f26e4ef09c3 by @vanniktech to the README.
README updated.
Most helpful comment
NOTE to self: in addition to the above add https://proandroiddev.com/making-your-gradle-tasks-incremental-7f26e4ef09c3 by @vanniktech to the README.