vet to scan with higher fidelity. This guide uses the CycloneDX Gradle plugin to generate an SBOM and scan it with vet.
Gradle Integration
The CycloneDX Gradle plugin generates SBOMs thatvet can analyze for security issues.
Plugin Configuration
Add the CycloneDX plugin to yourbuild.gradle file:
Configuration Options
Dependency Scopes
Dependency Scopes
includeConfigs: Which dependency configurations to include
Project Filtering
Project Filtering
skipConfigs and skipProjects: Exclude unnecessary components
Output Customization
Output Customization
destination and outputName: Control where SBOMs are generated
SBOM Generation
Generate SBOM artifacts with a clean build:
build/reports directory.
Multi-Project Configuration
For multi-module projects, configure the plugin in each module or use a shared configuration in the rootbuild.gradle:
Maven Integration
For Maven projects, use the CycloneDX Maven plugin:Scanning SBOMs with Vet
Once you have generated SBOM files, scan them withvet:
CycloneDX Format

npm/Node.js Integration
For Node.js projects, use the CycloneDX npm plugin:Python Integration
For Python projects, use cyclonedx-python:CI/CD Integration
- GitHub Actions
- GitLab CI
Configuration Notes
Environment-Specific SBOMs
Environment-Specific SBOMs
Control which dependencies appear in the SBOM by setting
includeConfigs and skipConfigs in your build.gradle (shown above). For example, list only runtimeClasspath for a production SBOM, or add testRuntimeClasspath to include test dependencies.Storage and Versioning
Storage and Versioning
Store SBOMs alongside releases for compliance and audit:
CycloneDX Gradle Plugin
Complete documentation for the Gradle plugin
CycloneDX Maven Plugin
Maven plugin documentation and examples
SBOM Generation Guide
Learn more about generating SBOMs with Vet
Package Manager Support
See all supported package managers in Vet

