StigRepoRef

data class StigRepoRef(val name: String, rootDir: File? = null) : Serializable

Type-safe reference to a STIG repo name, returned by root-project DSL (repo("sourceRepo") { ... }). Used for declaring groups (group { from(sourceRepo) }) and defaults, and also for resolving file paths via the / operator when the rootDir is available (i.e. when returned by repo() in root build.gradle.kts).

Per-module code should use StigRepoDir (obtained via repos["sourceRepo"]) which always carries a resolved root directory.

Constructors

Link copied to clipboard
constructor(name: String, rootDir: File? = null)

Properties

Link copied to clipboard

The repo name (matches repo("...") declaration).

Functions

Link copied to clipboard
operator fun div(relativePath: String): StigRepoFile

Creates a resolved file reference within this repo. Requires rootDir to be set (i.e. the ref must come from repo() in root build.gradle.kts, not from deserialization).

Link copied to clipboard
fun pattern(regex: String): String

Creates a repo-relative regex pattern string for provenanceBuild { }. The string is returned as-is (minus any leading /).

Link copied to clipboard
open override fun toString(): String