public abstract class VariantBasedCodeQualityPlugin<T extends Task> extends AbstractAndroidCodeQualityPlugin<T,VariantBasedCodeQualityExtension>
AndroidProjectPlugin.ProjectTypeextension, project| Constructor and Description |
|---|
VariantBasedCodeQualityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configureForVariant(com.android.build.gradle.api.BaseVariant sourceSet,
T task) |
protected static FileTree |
getAllJava(com.android.build.gradle.api.BaseVariant androidSourceSet)
All Java source files for this source set.
|
protected FileCollection |
getCompileClasspath(com.android.build.gradle.api.BaseVariant variant)
Returns the classpath used to compile this source.
|
protected Callable<Collection<?>> |
getExtensionElementsCallable() |
protected String |
getExtensionElementsName() |
protected FileTree |
getOutput(com.android.build.gradle.api.BaseVariant androidSourceSet) |
protected static String |
getTaskName(com.android.build.gradle.api.BaseVariant variant,
String verb,
String target)
Returns the name of a task for this source set.
|
protected void |
withAndroid(com.android.build.gradle.TestedExtension extension) |
apply, beforeApply, configureTaskDefaults, conventionMappingOf, createConfigurations, createExtension, getBasePlugin, getConfigurationName, getJavaPluginConvention, getReportName, getTaskBaseName, getTaskType, getToolName, withBasePlugingetAndroidExtension, getAndroidVariants, getTestVariants, getUnitTestVariants, publishVariantprotected void withAndroid(com.android.build.gradle.TestedExtension extension)
withAndroid in class AndroidProjectPluginprotected String getExtensionElementsName()
getExtensionElementsName in class AbstractAndroidCodeQualityPlugin<T extends Task,VariantBasedCodeQualityExtension>protected Callable<Collection<?>> getExtensionElementsCallable()
getExtensionElementsCallable in class AbstractAndroidCodeQualityPlugin<T extends Task,VariantBasedCodeQualityExtension>protected abstract void configureForVariant(com.android.build.gradle.api.BaseVariant sourceSet,
T task)
protected static String getTaskName(com.android.build.gradle.api.BaseVariant variant, String verb, String target)
verb - The action, may be null.target - The target, may be nullSourceSet.getTaskName(String, String)protected FileCollection getCompileClasspath(com.android.build.gradle.api.BaseVariant variant)
SourceSet.getCompileClasspath()protected static FileTree getAllJava(com.android.build.gradle.api.BaseVariant androidSourceSet)
SourceSet.getAllJava()protected FileTree getOutput(com.android.build.gradle.api.BaseVariant androidSourceSet)
SourceSet.getOutput()