Class AgentDocsResolvePlugin
java.lang.Object
io.github.duckasteroid.agentdocs.resolve.AgentDocsResolvePlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class AgentDocsResolvePlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Registers the
agentDocs extension and resolveAgentDocs task.
The task resolves sidecar artefacts, extracts docs for local use into the project skill tree, and cleans stale marker-owned dependency skill folders.
When agentDocs.includeSources is true, the task also resolves the
sources classifier jar for each dependency that has an agent-docs sidecar and unpacks
it into a src/ subdirectory of the skill folder. The extracted SKILL.md
frontmatter records metadata.sources: src/ when sources are available, or
metadata.sources: none when the sources jar is absent from the repository.
The task is intentionally configured to run on every invocation so dependency and skill-folder clean-up stays current as dependencies change.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AgentDocsResolvePlugin
public AgentDocsResolvePlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-