public abstract class SourceSetBasedCodeQualityPlugin<T extends Task> extends AbstractAndroidCodeQualityPlugin<T,SourceSetBasedCodeQualityExtension>
AndroidProjectPlugin.ProjectTypeextension, project| Constructor and Description |
|---|
SourceSetBasedCodeQualityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configureForSourceSet(com.android.build.gradle.api.AndroidSourceSet sourceSet,
T task) |
protected static FileTree |
getAllJava(com.android.build.gradle.api.AndroidSourceSet androidSourceSet)
All Java source files for this source set.
|
protected FileCollection |
getCompileClasspath(com.android.build.gradle.api.AndroidSourceSet androidSourceSet)
Returns the classpath used to compile this source.
|
protected Callable<Collection<?>> |
getExtensionElementsCallable() |
protected String |
getExtensionElementsName() |
protected FileCollection |
getOutput(com.android.build.gradle.api.AndroidSourceSet androidSourceSet) |
protected static String |
getTaskName(com.android.build.gradle.api.AndroidSourceSet sourceSet,
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,SourceSetBasedCodeQualityExtension>protected Callable<Collection<?>> getExtensionElementsCallable()
getExtensionElementsCallable in class AbstractAndroidCodeQualityPlugin<T extends Task,SourceSetBasedCodeQualityExtension>protected abstract void configureForSourceSet(com.android.build.gradle.api.AndroidSourceSet sourceSet,
T task)
protected static String getTaskName(com.android.build.gradle.api.AndroidSourceSet sourceSet, 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.AndroidSourceSet androidSourceSet)
SourceSet.getCompileClasspath()protected static FileTree getAllJava(com.android.build.gradle.api.AndroidSourceSet androidSourceSet)
SourceSet.getAllJava()protected FileCollection getOutput(com.android.build.gradle.api.AndroidSourceSet androidSourceSet)
SourceSet.getOutput()