Get Android gradle plugin & checkstyle working together / command line usage

后端 未结 6 1728
礼貌的吻别
礼貌的吻别 2020-12-23 10:31

I\'m evaluating the ability of the new gradle-based build system to reproduce our current ant-based build process and, as a gradle beginner, I failed to get checkstyle runni

6条回答
  •  清酒与你
    2020-12-23 11:09

    Someone has a great answer to solve integrating PMD, findbugs and checkstyle with Gradle for Android. Unfortunately, the only solution for now is based on ant : http://sethrylan.org/2013/07/14/gradle-android-findbugs.html

    I wish gradle will one day allow to do as much as maven for Android.

    --- Update as of October 2013

    With Gradle 1.8 and Android plugin for Gradle 0.6.+, you don't need this anymore. Android sourcesets and configurations are now compatible with the java plugin and all quality plugin work out of the box.

    This includes pmd, findbugs, checkstyle and classycle.

    --- Update A configuration, largely inspired from the project mentioned above, is proposed in this open source project as well, plus other tools.

提交回复
热议问题