Ktlint: Improve Gradle installation.

Created on 11 Mar 2018  路  3Comments  路  Source: pinterest/ktlint

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.

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plastiv picture plastiv  路  4Comments

xenomachina picture xenomachina  路  5Comments

vanniktech picture vanniktech  路  5Comments

DanteAndroid picture DanteAndroid  路  3Comments

jbarr21 picture jbarr21  路  5Comments