public abstract class RestrictImports extends org.gradle.api.DefaultTask implements BannedImportGroupDefinition, RestrictImportsTaskConfiguration
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TASK_NAME |
| Constructor and Description |
|---|
RestrictImports() |
| Modifier and Type | Method and Description |
|---|---|
de.skuzzle.enforcer.restrictimports.analyze.BannedImportGroup |
createGroupFromPluginConfiguration(BannedImportGroupDefinition definition,
java.util.List<de.skuzzle.enforcer.restrictimports.analyze.NotFixable> globalNotFixables) |
abstract org.gradle.api.provider.Property<java.lang.Boolean> |
getFailBuild() |
abstract org.gradle.api.provider.ListProperty<BannedImportGroupDefinition> |
getGroups() |
abstract org.gradle.api.provider.Property<java.lang.Boolean> |
getIncludeCompileCode() |
abstract org.gradle.api.provider.Property<java.lang.Boolean> |
getIncludeTestCode() |
abstract org.gradle.api.provider.Property<org.gradle.api.file.FileCollection> |
getMainSourceSet() |
abstract org.gradle.api.provider.ListProperty<NotFixableDefinition> |
getNotFixable() |
protected abstract org.gradle.api.model.ObjectFactory |
getObjectFactory() |
abstract org.gradle.api.provider.Property<java.lang.Boolean> |
getParallel() |
abstract org.gradle.api.provider.Property<java.lang.Boolean> |
getParseFullCompilationUnit() |
abstract org.gradle.api.file.DirectoryProperty |
getReportsDirectory() |
abstract org.gradle.api.provider.Property<org.gradle.api.file.FileCollection> |
getTestSourceSet() |
void |
group(org.gradle.api.Action<BannedImportGroupDefinition> definition) |
void |
notFixable(org.gradle.api.Action<NotFixableDefinition> definition) |
void |
restrictImports() |
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceacceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllowedImports, getBannedImports, getBasePackages, getExclusions, getReasonpublic static final java.lang.String DEFAULT_TASK_NAME
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjectFactory()
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getReportsDirectory()
getReportsDirectory in interface RestrictImportsTaskConfiguration@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getIncludeCompileCode()
getIncludeCompileCode in interface RestrictImportsTaskConfiguration@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getIncludeTestCode()
getIncludeTestCode in interface RestrictImportsTaskConfiguration@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getParallel()
getParallel in interface RestrictImportsTaskConfiguration@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getFailBuild()
getFailBuild in interface RestrictImportsTaskConfiguration@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getParseFullCompilationUnit()
getParseFullCompilationUnit in interface RestrictImportsTaskConfiguration@InputFiles @SkipWhenEmpty public abstract org.gradle.api.provider.Property<org.gradle.api.file.FileCollection> getMainSourceSet()
getMainSourceSet in interface RestrictImportsTaskConfiguration@InputFiles @SkipWhenEmpty public abstract org.gradle.api.provider.Property<org.gradle.api.file.FileCollection> getTestSourceSet()
getTestSourceSet in interface RestrictImportsTaskConfigurationpublic abstract org.gradle.api.provider.ListProperty<BannedImportGroupDefinition> getGroups()
getGroups in interface RestrictImportsTaskConfigurationpublic abstract org.gradle.api.provider.ListProperty<NotFixableDefinition> getNotFixable()
getNotFixable in interface RestrictImportsTaskConfigurationpublic void restrictImports()
public de.skuzzle.enforcer.restrictimports.analyze.BannedImportGroup createGroupFromPluginConfiguration(BannedImportGroupDefinition definition, java.util.List<de.skuzzle.enforcer.restrictimports.analyze.NotFixable> globalNotFixables)
public void group(org.gradle.api.Action<BannedImportGroupDefinition> definition)
group in interface RestrictImportsTaskConfigurationpublic void notFixable(org.gradle.api.Action<NotFixableDefinition> definition)
notFixable in interface RestrictImportsTaskConfiguration