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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.file.RegularFileProperty
    The baseline file; it may not exist.
    abstract org.gradle.api.file.ConfigurableFileCollection
    The main compilation's class output.
    abstract org.gradle.api.provider.MapProperty<String,String>
    compileJava's effective -A options, 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 the agentic extension's.
    abstract org.gradle.api.provider.Property<Boolean>
    Whether lock mode is on.
    abstract org.gradle.api.file.ConfigurableFileCollection
    The annotationProcessor classpath the check is loaded from.
    abstract org.gradle.api.provider.Property<String>
    The processor on the annotationProcessor classpath, named when this plugin cannot run it.
    protected abstract org.gradle.workers.WorkerExecutor
     

    Methods 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, usesService

    Methods 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, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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()
      The annotationProcessor classpath the check is loaded from.
    • getBaseline

      @Internal public abstract org.gradle.api.file.RegularFileProperty getBaseline()
      The baseline file; it may not exist.
    • getLocked

      @Input public abstract org.gradle.api.provider.Property<Boolean> getLocked()
      Whether lock mode is on.
    • getCompilerArguments

      @Input public abstract org.gradle.api.provider.MapProperty<String,String> getCompilerArguments()
      compileJava's effective -A options, 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 the agentic extension's.
    • getProcessorVersion

      @Internal public abstract org.gradle.api.provider.Property<String> getProcessorVersion()
      The processor on the annotationProcessor classpath, named when this plugin cannot run it.
    • getWorkerExecutor

      @Inject protected abstract org.gradle.workers.WorkerExecutor getWorkerExecutor()