StigCheckModelTask

@DisableCachingByDefault(because = "Model checks instantiate current compiled model classes.")
abstract class StigCheckModelTask : DefaultTask

Runs model checks (consistency rules) on compiled viewpoint classes.

Up-to-date capable: declares @OutputDirectory outputs (SARIF + HTML reports). If compiled model classes and check configuration are unchanged, Gradle skips re-execution.

Model objects are instantiated from current compiled outputs; the task's outputs and configuration still participate in Gradle up-to-date checks.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var actions: List<Action<in Task?>?>?
Link copied to clipboard
open val ant: AntBuilder?
Link copied to clipboard
@get:Internal
open val asDynamicObject: DynamicObject
Link copied to clipboard
abstract val checkedModules: ListProperty<ModelCheckModule>

Root checks evaluate these modules against one complete inventory. Local checks leave this empty.

Link copied to clipboard
@get:Input
abstract val checks: Property<ModelCheckMode>
Link copied to clipboard
@get:Input
abstract val completeModelScope: Property<Boolean>

Complete project model scope supplied by the plugin, never inferred from an empty child list.

Link copied to clipboard
@get:Input
@get:Optional
abstract val configuredElementId: Property<String>

Optional canonical Highway model element ID configured in stig { element { id = "..." } }. When a context model element is present, model check reports HIGH if the configured ID and computed context model ID differ.

Link copied to clipboard
open val dependsOn: Set<Any?>?
Link copied to clipboard
open var description: @Nullable String?
Link copied to clipboard
open val destroyables: TaskDestroyables?
Link copied to clipboard
open var didWork: Boolean
Link copied to clipboard
@get:Internal
abstract val elementDir: DirectoryProperty
Link copied to clipboard
open var enabled: Boolean
Link copied to clipboard
@get:Input
abstract val enabledViewpoints: ListProperty<String>

Viewpoints enabled by the DSL modelCheck { viewpoint { enabled = ... } } cascade. Disabled viewpoints remain available as context but are not checked.

Link copied to clipboard
@get:Input
abstract val explicitContextModules: ListProperty<String>
Link copied to clipboard
open val extensions: ExtensionContainer?
Link copied to clipboard
@get:Input
abstract val failAt: Property<ProblemSeverity>
Link copied to clipboard
open val finalizedBy: TaskDependency?
Link copied to clipboard
open var group: @Nullable String?
Link copied to clipboard
open val identityPath: Path?
Link copied to clipboard
Link copied to clipboard
open val inputs: TaskInputsInternal?
Link copied to clipboard
@get:Internal
open var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
@get:Internal
open val lifecycleDependencies: TaskDependencyInternal?
Link copied to clipboard
open val localState: TaskLocalState?
Link copied to clipboard
open val logger: Logger?
Link copied to clipboard
open val logging: LoggingManager?
Link copied to clipboard
open val loggingManager: @Nullable LoggingManagerInternal?
Link copied to clipboard
@get:Input
abstract val logicalOwnerProjects: MapProperty<String, String>

Element ID to report-owning Gradle project; declaration location remains separate.

Link copied to clipboard
@get:Classpath
abstract val modelClasspath: ConfigurableFileCollection

Classpath containing the compiled model classes and their dependencies. Set by the plugin to include the module's runtime classpath.

Link copied to clipboard
@get:Input
abstract val modelModuleDependencies: MapProperty<String, List<String>>

Ordinary Kotlin module dependencies, shared with the core's module scope planner.

Link copied to clipboard
@get:Input
abstract val modelModuleDirectories: MapProperty<String, String>

Registered model module roots used to identify declaration ownership.

Link copied to clipboard
@get:Classpath
abstract val modelOutputClasspath: ConfigurableFileCollection

Current-build model outputs that may contain declarations to bind. Unlike modelClasspath, this deliberately excludes external dependency-cache JARs.

Link copied to clipboard
@get:InputFiles
@get:PathSensitive(value = PathSensitivity.RELATIVE)
abstract val modelSourceFiles: ConfigurableFileCollection

Source-only layout and naming edits must invalidate cached checks as well as compiled model changes.

Link copied to clipboard
open val mustRunAfter: TaskDependency?
Link copied to clipboard
open val name: String?
Link copied to clipboard
open val onlyIf: Spec<in TaskInternal?>?
Link copied to clipboard
open val outputs: TaskOutputsInternal?
Link copied to clipboard
open val path: String?
Link copied to clipboard
@get:InputDirectory
@get:Optional
@get:PathSensitive(value = PathSensitivity.RELATIVE)
abstract val preparedResultsDirectory: DirectoryProperty

Results prepared by the report's shared model session, consumed without loading Kotlin again.

Link copied to clipboard
@get:OutputFile
abstract val problemsFile: RegularFileProperty

Canonical model and execution problems emitted by this task.

Link copied to clipboard
open val project: Project?
Link copied to clipboard
@get:Input
abstract val projectPath: Property<String>

Gradle project path captured during configuration for canonical problem provenance.

Link copied to clipboard
@get:Internal
abstract val projectReportEnabled: Property<Boolean>
Link copied to clipboard
@get:Internal
abstract val projectRoot: DirectoryProperty
Link copied to clipboard
@get:Internal
abstract val publishedReportTableFile: RegularFileProperty
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:Input
abstract val reportClassificationDifferences: Property<Boolean>
Link copied to clipboard
@get:OutputDirectory
@get:Optional
abstract val reportDir: DirectoryProperty
Link copied to clipboard
@get:Input
@get:Optional
abstract val reportFormat: Property<ReportFormat>
Link copied to clipboard
@get:Internal
abstract val reportResultsFile: RegularFileProperty

Report export destinations shown for full-model checks; this task does not produce or refresh them.

Link copied to clipboard
@get:Internal
abstract val reportTableFile: RegularFileProperty
Link copied to clipboard
open val requiredServices: TaskRequiredServices?
Link copied to clipboard
@get:OutputFile
abstract val ruleInventoryFile: RegularFileProperty

Rule inventory used with canonical problem records by HTML and SARIF derived views.

Link copied to clipboard
@get:Input
@get:Optional
abstract val ruleset: Property<String>
Link copied to clipboard
@get:OutputDirectory
abstract val sarifOutputDir: DirectoryProperty

Output directory for the always-generated SARIF report (IDE integration). Set by the plugin to build/reports/stig/.

Link copied to clipboard
open val sharedResources: List<ResourceLock?>?
Link copied to clipboard
open val shouldRunAfter: TaskDependency?
Link copied to clipboard
open val standardOutputCapture: StandardOutputCapture?
Link copied to clipboard
open val state: TaskStateInternal?
Link copied to clipboard
open val taskActions: List<InputChangesAwareTaskAction?>?
Link copied to clipboard
open val taskDependencies: TaskDependencyInternal?
Link copied to clipboard
open val taskIdentity: TaskIdentity<*>?
Link copied to clipboard
open val temporaryDir: File?
Link copied to clipboard
open val temporaryDirFactory: Factory<File?>?
Link copied to clipboard
open val timeout: Property<Duration?>?
Link copied to clipboard
@get:Input
abstract val viewpoints: ListProperty<String>
Link copied to clipboard
@get:Input
abstract val workerCount: Property<Int>

Module checks share one loaded model and reserve one available CPU by default.

Functions

Link copied to clipboard
open fun acceptServiceReferences(serviceReferences: Set<ServiceReferenceSpec?>?)
Link copied to clipboard
open fun appendParallelSafeAction(action: Action<in Task?>?)
Link copied to clipboard
open operator fun compareTo(otherTask: Task?): Int
Link copied to clipboard
open fun configure(closure: Closure<*>?): Task?
Link copied to clipboard
open fun dependsOn(vararg paths: Any?): Task?
Link copied to clipboard
open fun doFirst(action: Closure<*>?): Task?
open fun doFirst(action: Action<in Task?>?): Task?
open fun doFirst(actionName: String?, action: Action<in Task?>?): Task?
Link copied to clipboard
open fun doLast(action: Closure<*>?): Task?
open fun doLast(action: Action<in Task?>?): Task?
open fun doLast(actionName: String?, action: Action<in Task?>?): Task?
Link copied to clipboard
open fun doNotTrackState(reasonNotToTrackState: String?)
Link copied to clipboard
open fun doNotTrackStateIf(reason: String?, spec: Spec<in TaskInternal?>?)
Link copied to clipboard
open fun finalizedBy(vararg paths: Any?): Task?
Link copied to clipboard
Link copied to clipboard
open fun hasProperty(propertyName: String?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun mustRunAfter(vararg paths: Any?): Task?
Link copied to clipboard
open fun onlyIf(onlyIfClosure: Closure<*>?)
open fun onlyIf(spec: Spec<in Task?>?)
open fun onlyIf(onlyIfReason: String?, spec: Spec<in Task?>?)
Link copied to clipboard
fun optChecks(raw: String)
Link copied to clipboard
fun optReportDir(path: String)
Link copied to clipboard
Link copied to clipboard
fun optRuleset(raw: String)
Link copied to clipboard
open fun prependParallelSafeAction(action: Action<in Task?>?)
Link copied to clipboard
open fun property(propertyName: String?): Any?
Link copied to clipboard
open fun restoreOnlyIf(onlyIf: Spec<in TaskInternal?>?)
Link copied to clipboard
open fun restoreTaskActions(taskActions: List<InputChangesAwareTaskAction?>?)
Link copied to clipboard
fun runCheck()
Link copied to clipboard
open fun setDependsOn(dependsOn: Iterable<*>?)
Link copied to clipboard
open fun setFinalizedBy(finalizedByTasks: Iterable<*>?)
Link copied to clipboard
open fun setMustRunAfter(mustRunAfterTasks: Iterable<*>?)
Link copied to clipboard
open fun setOnlyIf(onlyIfClosure: Closure<*>?)
open fun setOnlyIf(spec: Spec<in Task?>?)
open fun setOnlyIf(onlyIfReason: String?, spec: Spec<in Task?>?)
Link copied to clipboard
open fun setProperty(name: String?, value: Any?)
Link copied to clipboard
open fun setShouldRunAfter(shouldRunAfterTasks: Iterable<*>?)
Link copied to clipboard
open fun shouldRunAfter(vararg paths: Any?): TaskDependency?
Link copied to clipboard
open fun usesService(service: Provider<out BuildService<*>?>?)