Class AndroidPmdPlugin
- java.lang.Object
-
- io.freefair.gradle.plugins.android.AndroidProjectPlugin
-
- io.freefair.gradle.plugins.android.quality.AndroidCodeQualityHelper
-
- io.freefair.gradle.plugins.android.quality.AbstractAndroidCodeQualityPlugin<T,SourceSetBasedCodeQualityExtension>
-
- io.freefair.gradle.plugins.android.quality.SourceSetBasedCodeQualityPlugin<Pmd>
-
- io.freefair.gradle.plugins.android.quality.AndroidPmdPlugin
-
@Incubating public class AndroidPmdPlugin extends SourceSetBasedCodeQualityPlugin<Pmd>
Copy ofPmdPlugin
which- extends
AbstractAndroidCodeQualityPlugin
instead ofAbstractCodeQualityPlugin
- uses
AndroidSourceSets
instead ofJavaSourceSets
- See Also:
PmdPlugin
,AbstractAndroidCodeQualityPlugin
- extends
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.freefair.gradle.plugins.android.AndroidProjectPlugin
AndroidProjectPlugin.ProjectType
-
-
Field Summary
-
Fields inherited from class io.freefair.gradle.plugins.android.quality.AbstractAndroidCodeQualityPlugin
project
-
-
Constructor Summary
Constructors Constructor Description AndroidPmdPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureConfiguration(Configuration configuration)
protected void
configureForSourceSet(com.android.build.api.dsl.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()
-
Methods inherited from class io.freefair.gradle.plugins.android.quality.SourceSetBasedCodeQualityPlugin
getAllJava, getAllVariants, getCompileClasspath, getExtensionElementsCallable, getExtensionElementsName, getOutput, getTaskName, withAndroid
-
Methods inherited from class io.freefair.gradle.plugins.android.quality.AbstractAndroidCodeQualityPlugin
apply, beforeApply, conventionMappingOf, createConfigurations, getBasePlugin, getConfigurationName, getJavaPluginConvention, getReportName, getTaskBaseName, withBasePlugin
-
Methods inherited from class io.freefair.gradle.plugins.android.AndroidProjectPlugin
getAllJava, getAndroidExtension, getAndroidVariants, getCompileClasspath, getOutput, getProject, getProjectType, getTaskName, getTestVariants, getUnitTestVariants, publishVariant
-
-
-
-
Method Detail
-
getToolName
protected String getToolName()
- Specified by:
getToolName
in classAbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>
-
getTaskType
protected Class<Pmd> getTaskType()
- Specified by:
getTaskType
in classAbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>
-
createExtension
protected SourceSetBasedCodeQualityExtension createExtension()
- Specified by:
createExtension
in classAbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>
-
getDefaultTargetJdk
public TargetJdk getDefaultTargetJdk(JavaVersion javaVersion)
-
configureConfiguration
protected void configureConfiguration(Configuration configuration)
- Specified by:
configureConfiguration
in classAbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>
-
configureTaskDefaults
protected void configureTaskDefaults(Pmd task, String baseName)
- Specified by:
configureTaskDefaults
in classAbstractAndroidCodeQualityPlugin<Pmd,SourceSetBasedCodeQualityExtension>
-
configureForSourceSet
protected void configureForSourceSet(com.android.build.api.dsl.AndroidSourceSet sourceSet, Pmd task)
- Specified by:
configureForSourceSet
in classSourceSetBasedCodeQualityPlugin<Pmd>
-
-