Class TracingConfig
java.lang.Object
org.itsallcode.openfasttrace.gradle.config.TracingConfig
Configuration of requirement collection and tracing.
-
Constructor Summary
ConstructorsConstructorDescriptionTracingConfig(org.gradle.api.Project project) Creates a tracing configuration with the plugin defaults. -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<org.itsallcode.openfasttrace.api.DetailsSectionDisplay>Returns the report details section display setting.org.gradle.api.provider.Property<Boolean>Returns whether tracing defects fail the build.org.gradle.api.provider.Property<Boolean>Returns whether untagged items are included.org.gradle.api.provider.SetProperty<String>Returns the artifact types to include in tracing.org.gradle.api.provider.SetProperty<String>Returns the tags to include in tracing.org.gradle.api.provider.SetProperty<String>Returns the statuses to include in tracing.org.gradle.api.provider.ListProperty<Object>Returns the external requirement dependencies.org.gradle.api.file.ConfigurableFileCollectionReturns the directories containing requirements.org.gradle.api.provider.Property<org.itsallcode.openfasttrace.api.ColorScheme>Returns the report color scheme.org.gradle.api.file.RegularFilePropertyReturns the optional report output file.org.gradle.api.provider.Property<String>Returns the report format property.org.gradle.api.provider.Property<org.itsallcode.openfasttrace.api.report.ReportVerbosity>Returns the report verbosity property.Returns the tag path configuration.voidsetDetailsSectionDisplay(String detailsSectionDisplay) Sets the report details section display setting by name.voidsetDetailsSectionDisplay(org.itsallcode.openfasttrace.api.DetailsSectionDisplay detailsSectionDisplay) Sets the report details section display setting by name.voidsetFailBuild(boolean failBuild) Sets whether tracing defects fail the build.voidsetFilterAcceptsItemsWithoutTag(boolean filterAcceptsItemsWithoutTag) Sets whether untagged items are included.voidsetFilteredArtifactTypes(List<String> filteredArtifactTypes) Sets the artifact types to include in tracing.voidsetFilteredTags(List<String> filteredTags) Sets the tags to include in tracing.voidsetFilterWantedStatuses(Set<String> statuses) Sets the statuses to include in tracing.voidsetImportedRequirements(List<Object> importedRequirements) Sets the external requirement dependencies.voidsetInputDirectories(org.gradle.api.file.ConfigurableFileCollection inputDirectories) Sets the directories containing requirements.voidsetReportColorScheme(String reportColorScheme) Sets the report color scheme.voidsetReportColorScheme(org.itsallcode.openfasttrace.api.ColorScheme reportColorScheme) Sets the report color scheme.voidsetReportFile(org.gradle.api.file.RegularFileProperty reportFile) Sets the report output file.voidsetReportFormat(String reportFormat) Sets the report format.voidsetReportVerbosity(String reportVerbosity) Sets the report verbosity by name.voidsetReportVerbosity(org.itsallcode.openfasttrace.api.report.ReportVerbosity reportVerbosity) Sets the report verbosity.toString()
-
Constructor Details
-
TracingConfig
public TracingConfig(org.gradle.api.Project project) Creates a tracing configuration with the plugin defaults.- Parameters:
project- the Gradle project owning the configuration
-
-
Method Details
-
getReportVerbosity
public org.gradle.api.provider.Property<org.itsallcode.openfasttrace.api.report.ReportVerbosity> getReportVerbosity()Returns the report verbosity property.- Returns:
- the verbosity property
-
getReportColorScheme
public org.gradle.api.provider.Property<org.itsallcode.openfasttrace.api.ColorScheme> getReportColorScheme()Returns the report color scheme.- Returns:
- the color scheme
-
getReportFormat
Returns the report format property.- Returns:
- the format property
-
getInputDirectories
public org.gradle.api.file.ConfigurableFileCollection getInputDirectories()Returns the directories containing requirements.- Returns:
- the input directories
-
getReportFile
public org.gradle.api.file.RegularFileProperty getReportFile()Returns the optional report output file.- Returns:
- the report file
-
getImportedRequirements
Returns the external requirement dependencies. This is a list of dependency coordinates pointing to ZIP files containing requirements, e.g.com.example:swad:1.0.0@zip.- Returns:
- the imported requirements
-
getFilteredTags
Returns the tags to include in tracing.- Returns:
- the tag filter
-
getFilteredArtifactTypes
Returns the artifact types to include in tracing.- Returns:
- the artifact type filter
-
getFilterAcceptsItemsWithoutTag
Returns whether untagged items are included.- Returns:
- the untagged item setting
-
getDetailsSectionDisplay
public org.gradle.api.provider.Property<org.itsallcode.openfasttrace.api.DetailsSectionDisplay> getDetailsSectionDisplay()Returns the report details section display setting.- Returns:
- the display setting
-
getFilterWantedStatuses
Returns the statuses to include in tracing.- Returns:
- the status filter
-
setReportVerbosity
Sets the report verbosity by name.- Parameters:
reportVerbosity- verbosity name
-
setReportVerbosity
public void setReportVerbosity(org.itsallcode.openfasttrace.api.report.ReportVerbosity reportVerbosity) Sets the report verbosity.- Parameters:
reportVerbosity- verbosity to use
-
setReportColorScheme
Sets the report color scheme.- Parameters:
reportColorScheme- color scheme to use
-
setReportColorScheme
public void setReportColorScheme(org.itsallcode.openfasttrace.api.ColorScheme reportColorScheme) Sets the report color scheme.- Parameters:
reportColorScheme- color scheme to use
-
setReportFormat
Sets the report format.- Parameters:
reportFormat- format to use
-
setInputDirectories
public void setInputDirectories(org.gradle.api.file.ConfigurableFileCollection inputDirectories) Sets the directories containing requirements.- Parameters:
inputDirectories- directories to use
-
setReportFile
public void setReportFile(org.gradle.api.file.RegularFileProperty reportFile) Sets the report output file.- Parameters:
reportFile- file to write
-
setImportedRequirements
Sets the external requirement dependencies.- Parameters:
importedRequirements- dependencies to import
-
setFilteredTags
Sets the tags to include in tracing.- Parameters:
filteredTags- tags to include
-
setFilteredArtifactTypes
Sets the artifact types to include in tracing.- Parameters:
filteredArtifactTypes- artifact types to include
-
setFilterAcceptsItemsWithoutTag
public void setFilterAcceptsItemsWithoutTag(boolean filterAcceptsItemsWithoutTag) Sets whether untagged items are included.- Parameters:
filterAcceptsItemsWithoutTag- whether to include untagged items
-
setDetailsSectionDisplay
public void setDetailsSectionDisplay(org.itsallcode.openfasttrace.api.DetailsSectionDisplay detailsSectionDisplay) Sets the report details section display setting by name.- Parameters:
detailsSectionDisplay- display setting name
-
setDetailsSectionDisplay
Sets the report details section display setting by name.- Parameters:
detailsSectionDisplay- display setting name
-
setFilterWantedStatuses
Sets the statuses to include in tracing.- Parameters:
statuses- statuses to include
-
getTagPathConfig
Returns the tag path configuration.- Returns:
- the tag path configuration
-
getFailBuild
Returns whether tracing defects fail the build.- Returns:
- the fail-build property
-
setFailBuild
public void setFailBuild(boolean failBuild) Sets whether tracing defects fail the build.- Parameters:
failBuild- whether defects should fail the build
-
toString
-