Documentation
¶
Overview ¶
Package gradleversioncatalog extracts Gradle Version Catalog files (libs.versions.toml) used by Gradle 7.0+ to centralize Maven-coordinate dependency declarations across multi-module builds.
Index ¶
Constants ¶
const (
// Name is the unique name of this extractor.
Name = "java/gradleversioncatalog"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(_ *cpb.PluginConfig) (filesystem.Extractor, error)
New returns a new instance of the extractor.
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor extracts Maven packages from Gradle Version Catalog files.
func (Extractor) Extract ¶
func (e Extractor) Extract(ctx context.Context, input *filesystem.ScanInput) (inventory.Inventory, error)
Extract parses a libs.versions.toml file and returns its declared libraries as Maven packages.
func (Extractor) FileRequired ¶
func (e Extractor) FileRequired(api filesystem.FileAPI) bool
FileRequired returns true if the specified file matches the Gradle Version Catalog naming convention. The default catalog filename is libs.versions.toml; additional catalogs may be declared under any *.versions.toml name inside a gradle/ directory.
func (Extractor) Requirements ¶
func (e Extractor) Requirements() *plugin.Capabilities
Requirements of the extractor.