seviu/gradle-android-cq-plugin


README

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.seviu:gradle-android-cq-plugin:0.1.31'
	}
	dependencies {
		implementation("com.github.seviu:gradle-android-cq-plugin:0.1.31")
	}
	<dependency>
	    <groupId>com.github.seviu</groupId>
	    <artifactId>gradle-android-cq-plugin</artifactId>
	    <version>0.1.31</version>
	</dependency>

                            
    libraryDependencies += "com.github.seviu" % "gradle-android-cq-plugin" % "0.1.31"
        
        

                            
    :dependencies [[com.github.seviu/gradle-android-cq-plugin "0.1.31"]]
        
        

Readme


gradle-android-cq-plugin

Gradle plugin for running tasks PMD, CPD, Findbugs, Checkstyle with android project

It uses the latest version of checkstyle with the latest rules. It also has the latest version of checkstyle from google and square.

The motivation of this fork is to have this plugin working with the latest version of Android.

findbugs, pmd, cpd, checkstyle checkstyle_google checkstyle_square

Usage:

Add the plugin to your buildscript's dependencies section:

classpath 'com.github.seviu:gradle-android-cq-plugin:0.1.28'

Apply the android-cq plugin:

apply plugin: 'android-cq'

Run: ./gradlew clean findbugs pmd cpd checkstyle checkstyle_google checkstyle_square

results will be placed in build/reports dir

Config:

For configs tasks use folder cq-config which will be created in project root dir after first tasks runing. In cq-config will be placed main configs(like ruleset, exclude etc.) and xsl files. For customizing tasks just replace appropriate config in task's folder.