@Incubating public class AndroidPmdPlugin extends SourceSetBasedCodeQualityPlugin<Pmd>
PmdPlugin which
AbstractAndroidCodeQualityPlugin instead of AbstractCodeQualityPluginAndroidSourceSets instead of JavaSourceSetsPmdPlugin,
AbstractAndroidCodeQualityPluginAndroidProjectPlugin.ProjectType| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PMD_VERSION |
project| Constructor and Description |
|---|
AndroidPmdPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureForSourceSet(com.android.build.gradle.api.AndroidSourceSet sourceSet,
Pmd task) |
protected void |
configureTaskDefaults(Pmd task,
String baseName) |
protected SourceSetBasedCodeQualityExtension |
createExtension() |
TargetJdk |
getDefaultTargetJdk(JavaVersion javaVersion) |
protected Class<Pmd> |
getTaskType() |
protected String |
getToolName() |
getAllJava, getCompileClasspath, getExtensionElementsCallable, getExtensionElementsName, getOutput, getTaskName, withAndroidapply, beforeApply, conventionMappingOf, createConfigurations, getBasePlugin, getConfigurationName, getJavaPluginConvention, getReportName, getTaskBaseName, withBasePlugingetAndroidExtension, getAndroidVariants, getTestVariants, getUnitTestVariants, publishVariantpublic static final String DEFAULT_PMD_VERSION
protected String getToolName()
getToolName in class AbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>protected Class<Pmd> getTaskType()
getTaskType in class AbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>protected SourceSetBasedCodeQualityExtension createExtension()
createExtension in class AbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>public TargetJdk getDefaultTargetJdk(JavaVersion javaVersion)
protected void configureTaskDefaults(Pmd task, String baseName)
configureTaskDefaults in class AbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>protected void configureForSourceSet(com.android.build.gradle.api.AndroidSourceSet sourceSet,
Pmd task)
configureForSourceSet in class SourceSetBasedCodeQualityPlugin<Pmd>