Package com.egoge.ai.atlas.plugin
Class AgenticPlugin
java.lang.Object
com.egoge.ai.atlas.plugin.AgenticPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
Gradle plugin that configures a Java project to use the AI-ATLAS framework.
Applies the Java plugin (if not already present) and adds:
annotationstoimplementationprocessortoannotationProcessorruntimetoimplementation(when MCP or REST is enabled)
Also configures IntelliJ IDEA to recognize generated source directories, and the contract
gate: the contractBaseline and contractLocked options of the main
compileJava, with the constraints option next to them, the "atlasContractCheck" task that classes depends on, and
the "atlasAccept" task; and the release workflow, "agenticRelease",
"agenticReleaseHistoryCheck" (part of check) and "agenticReleaseVerify".
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classcompileJava's compiler arguments and argument providers, read when the accept compilation runs.static final classcompileJava's JVM argument providers, read when the accept compilation runs. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe task that writes the current contract to the baseline.static final StringThe task that checks an empty contract against the baseline.static final StringThe task, part ofcheck, that verifies the released snapshots' internal consistency.static final StringThe task that releases the accepted contract as an immutable snapshot.static final StringThe task, not part ofcheck, that verifies the build against a tagged release. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONTRACT_CHECK_TASK
The task that checks an empty contract against the baseline.- See Also:
-
ACCEPT_TASK
The task that writes the current contract to the baseline.- See Also:
-
RELEASE_TASK
The task that releases the accepted contract as an immutable snapshot.- See Also:
-
RELEASE_HISTORY_CHECK_TASK
The task, part ofcheck, that verifies the released snapshots' internal consistency.- See Also:
-
RELEASE_VERIFY_TASK
The task, not part ofcheck, that verifies the build against a tagged release.- See Also:
-
-
Constructor Details
-
AgenticPlugin
@Inject public AgenticPlugin(org.gradle.workers.WorkerExecutor workerExecutor)
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-