Fork me on GitHub

Quality Plugin

The quality plugin automates and preconfigures a lot of the mundane details and gradle pain associated with getting everything to work on BOTH Android and regular Java projects.

What does it do?

Generates reports from the following tools on Android AND Java projects.

Why is the AND bold? The short version of the story is that most examples on the net either work only on android or only on java projects (or didn't work on all versions of gradle and the android plugin). So after much pain, suffering, reflection, and sleepless nights, I wrote one. It is based off the work done here.

What's the best way to use it?

We (gradle-fury) use only it during a "ci" build because it tends to add some time to the builds. As such, we have a simple if statement in the root build file to toggle it on and off

Runs findbugs, checkstyle, pmd, etc on all your projects (android and java).

To apply to your project, apply this file under 'allprojects'.

Important, you will need to copy the files from gradle-fury/config and place it in your project

allprojects {
        apply from 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/master/gradle/quality.gradle'
  }

then execute with gradelw build

Since the checks can add a lot of time to your build, you probably want to make it optional...

 allprojects {
     if (project.hasProperty('profile') && project.profile.split(',').contains("ci")) {
        apply from 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/master/gradle/quality.gradle'     }
  }

Then execute with gradelw build -Pprofile=ci