Documentation
¶
Overview ¶
Package java implements a gorisk analyzer for Java projects. It supports Maven pom.xml and Gradle gradle.lockfile / build.gradle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
func Detect(dir string) capability.CapabilitySet
Detect walks .java files in dir and returns the combined capability set.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements the analyzer.Analyzer interface for Java projects.
type JavaPackage ¶
type JavaPackage struct {
Name string // groupID/artifactID
GroupID string
ArtifactID string
Version string
Dir string
Dependencies []string
Direct bool
}
JavaPackage represents a Java dependency extracted from a lockfile.
func Load ¶
func Load(dir string) (pkgs []JavaPackage, retErr error)
Load detects and parses the Java dependency lockfile in dir. Detection order: pom.xml → build.gradle / gradle.lockfile Load never panics; it returns a structured error on failure.
Click to show internal directories.
Click to hide internal directories.