Package io.github.reqstool.gradle
Class RequirementsToolExtension
java.lang.Object
io.github.reqstool.gradle.RequirementsToolExtension
Extension for configuring the Reqstool Gradle Plugin. Provides zero-configuration
defaults matching the Maven plugin behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionRequirementsToolExtension(org.gradle.api.Project project) Constructs a RequirementsToolExtension with default configuration values. -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.file.RegularFilePropertyReturns the dataset directory containingrequirements.ymland optional supporting files.org.gradle.api.file.RegularFilePropertyReturns the output directory where the ZIP artifact and combined annotations are written.org.gradle.api.file.RegularFilePropertyReturns the path to the requirements annotations YAML file generated by the annotation processor.org.gradle.api.provider.Property<Boolean> getSkip()Returns whether the entire plugin execution should be skipped.org.gradle.api.provider.Property<Boolean> Returns whether ZIP artifact assembly should be skipped while still combining annotations.org.gradle.api.provider.Property<Boolean> Returns whether attaching the ZIP artifact for Maven publishing should be skipped.org.gradle.api.file.ConfigurableFileCollectionReturns the collection of SVCs (Software Verification Cases) annotations YAML files generated by the annotation processor for each test source set.org.gradle.api.provider.ListProperty<String> Returns the list of Ant-style glob patterns used to locate test result XML files.booleanReturns whethergetSvcsAnnotationsFiles()was explicitly configured.voidsetSvcsAnnotationsFile(Object file) Deprecated.voidsetSvcsAnnotationsFiles(Object... paths) Replaces the auto-discovered SVCs annotations file collection with explicit paths and disables auto-wired compile task dependencies.
-
Constructor Details
-
RequirementsToolExtension
public RequirementsToolExtension(org.gradle.api.Project project) Constructs a RequirementsToolExtension with default configuration values. Initializes all properties with sensible defaults matching Maven plugin behavior.- Parameters:
project- the Gradle project
-
-
Method Details
-
getRequirementsAnnotationsFile
public org.gradle.api.file.RegularFileProperty getRequirementsAnnotationsFile()Returns the path to the requirements annotations YAML file generated by the annotation processor.- Returns:
- file property for requirements annotations
-
getSvcsAnnotationsFiles
public org.gradle.api.file.ConfigurableFileCollection getSvcsAnnotationsFiles()Returns the collection of SVCs (Software Verification Cases) annotations YAML files generated by the annotation processor for each test source set.- Returns:
- file collection for SVCs annotations
-
setSvcsAnnotationsFiles
Replaces the auto-discovered SVCs annotations file collection with explicit paths and disables auto-wired compile task dependencies.- Parameters:
paths- one or more file paths,File, orFileCollectionentries
-
isSvcsAnnotationsFilesExplicit
public boolean isSvcsAnnotationsFilesExplicit()Returns whethergetSvcsAnnotationsFiles()was explicitly configured.- Returns:
trueif the user calledsetSvcsAnnotationsFiles(java.lang.Object...)
-
setSvcsAnnotationsFile
Deprecated.UsegetSvcsAnnotationsFiles()instead.- Parameters:
file- the file to add togetSvcsAnnotationsFiles()
-
getOutputDirectory
public org.gradle.api.file.RegularFileProperty getOutputDirectory()Returns the output directory where the ZIP artifact and combined annotations are written.- Returns:
- file property for the output directory
-
getDatasetPath
public org.gradle.api.file.RegularFileProperty getDatasetPath()Returns the dataset directory containingrequirements.ymland optional supporting files.- Returns:
- file property for the dataset directory
-
getTestResults
Returns the list of Ant-style glob patterns used to locate test result XML files.- Returns:
- list property of test result patterns
-
getSkip
Returns whether the entire plugin execution should be skipped.- Returns:
- boolean property;
trueskips all plugin tasks
-
getSkipAssembleZipArtifact
Returns whether ZIP artifact assembly should be skipped while still combining annotations.- Returns:
- boolean property;
trueskips ZIP assembly
-
getSkipAttachZipArtifact
Returns whether attaching the ZIP artifact for Maven publishing should be skipped.- Returns:
- boolean property;
trueskips artifact attachment
-
getSvcsAnnotationsFiles()instead.