StigProjectExtension
Project-phase extension for project-wide STIG configuration. Registered on the root project by com.stigway.gradle.plugin.StigPlugin and configured in the root build.gradle.kts:
stigProject {
basePackagePrefix = "app"
val sourceRepo = repo("sourceRepo") {
root = "../../../sourceRepo"
}
val sourceActivities = group("source_activities") {
from(sourceRepo)
elementType = ElementType.ACTIVITY
}
}Repo references returned by repo are live objects that subprojects access via repos["sourceRepo"] in their stig { element { ... } } blocks. No serialization/reconstruction needed — the extension is a single, live source of truth for the entire build.
Properties
Functions
Defines reusable LLVM transform models keyed by qualified function name or global name pattern.
Fallback values for elements without an explicit group.
Local HTML generation and preview-server configuration.
Defines a group (category of elements with shared settings). Returns a StigGroupRef for type-safe assignment in element configurations.
Pages-publishing configuration (remote, branch, subdir, base URL).
Defines a repo (source repository location). Returns a StigRepoRef that subprojects resolve to a StigRepoDir via repos["sourceRepo"]. The StigRepoDir.div operator then produces StigRepoFile references:
Project-wide source-code analysis pipeline toggles.