StigReposAccessor

Dynamic accessor for repos defined in root build.gradle.kts. Holds only the resolved config context (no Project reference — CC safe).

Returns StigRepoDir — a resolved repo directory that carries both the name (for metadata/display) and the eagerly resolved root directory. The / operator on StigRepoDir produces StigRepoFile references with fully resolved java.io.File paths — no lazy resolution needed.

Supports both bracket syntax and Kotlin property delegation:

stig {
val sourceRepo by repos // delegation → StigRepoDir
val stig_project by repos // underscores → hyphens fallback
element {
topicsFile = sourceRepo / "activities/foo/topics.json" // → StigRepoFile
}
}

Constructors

Link copied to clipboard
constructor(context: StigProjectConfigContext?)

Functions

Link copied to clipboard
operator fun get(name: String): StigRepoDir
Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): StigRepoDir

Kotlin property delegation: val sourceRepo by repos → repos["sourceRepo"].