group

fun group(name: String, configure: GroupDsl.() -> Unit): StigGroupRef

Defines a group (category of elements with shared settings).

Returns a StigGroupRef that can be used for type-safe assignment:

val sourceActivities = group("source_activities") {
from(sourceRepo)
elementType = ElementType.ACTIVITY
}

// In build.gradle.kts:
stig {
element {
group = sourceActivities // Type-safe!
}
}

Return

A type-safe reference to this group

Parameters

name

The group name

configure

Configuration block for the group