Package com.egoge.ai.atlas.plugin
Class AtlasContractCheck
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.egoge.ai.atlas.plugin.AtlasContractCheck
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault(because="Checks the compile output against the baseline on every run")
public abstract class AtlasContractCheck
extends org.gradle.api.DefaultTask
atlasContractCheck (FR-008, FR-016): javac does not invoke the processor for a
compilation that declares no @AgenticEntity or @AgenticExposed, so the gate
cannot run inside compileJava when a module removes its last ai-atlas annotation. This
task runs after it and, when the class output declares no contract, checks the empty contract
against the baseline with the processor's own EmptyContract.
It has no outputs, so it is never up-to-date and never loaded from the cache: an unchanged re-run of a failing build fails again.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.RegularFilePropertyThe baseline file; it may not exist.abstract org.gradle.api.file.ConfigurableFileCollectionThe main compilation's class output.compileJava's effective-Aoptions, last value winning: the REST base path and major the empty contract is built at, including an override the build adds to the compiler arguments after theagenticextension's.abstract org.gradle.api.provider.Property<Boolean>Whether lock mode is on.abstract org.gradle.api.file.ConfigurableFileCollectionTheannotationProcessorclasspath the check is loaded from.abstract org.gradle.api.provider.Property<String>The processor on theannotationProcessorclasspath, named when this plugin cannot run it.protected abstract org.gradle.workers.WorkerExecutorMethods inherited from class org.gradle.api.DefaultTask
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, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
AtlasContractCheck
public AtlasContractCheck()
-
-
Method Details
-
getClassesDirs
@InputFiles @PathSensitive(RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getClassesDirs()The main compilation's class output. -
getProcessorClasspath
@Classpath public abstract org.gradle.api.file.ConfigurableFileCollection getProcessorClasspath()TheannotationProcessorclasspath the check is loaded from. -
getBaseline
@Internal public abstract org.gradle.api.file.RegularFileProperty getBaseline()The baseline file; it may not exist. -
getLocked
Whether lock mode is on. -
getCompilerArguments
compileJava's effective-Aoptions, last value winning: the REST base path and major the empty contract is built at, including an override the build adds to the compiler arguments after theagenticextension's. -
getProcessorVersion
The processor on theannotationProcessorclasspath, named when this plugin cannot run it. -
getWorkerExecutor
@Inject protected abstract org.gradle.workers.WorkerExecutor getWorkerExecutor()
-