Documentation
¶
Index ¶
- func AttachSBTPositions(g *sdk.Graph, projectDir string)
- type Detector
- func (d Detector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d Detector) Descriptor() sdk.DetectorDescriptor
- func (d Detector) FallbackDetector() sdk.Detector
- func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d Detector) Ready(context.Context, sdk.DetectionRequest) error
- func (d Detector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
- type NativeDetector
- func (d NativeDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d NativeDetector) Descriptor() sdk.DetectorDescriptor
- func (d NativeDetector) FallbackDetector() sdk.Detector
- func (d NativeDetector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d NativeDetector) Ready(ctx context.Context, _ sdk.DetectionRequest) error
- func (d NativeDetector) ResolveGraph(ctx context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachSBTPositions ¶
AttachSBTPositions wires build.sbt / Dependencies.scala line numbers into an SBT-resolved graph.
Types ¶
type Detector ¶
Detector resolves Scala sbt dependency declarations from committed build files.
func (Detector) Applicable ¶
Applicable reports whether sbt build files are present.
func (Detector) Descriptor ¶
func (d Detector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the sbt detector.
func (Detector) FallbackDetector ¶
FallbackDetector returns the configured fallback detector.
func (Detector) PackageManagerSupport ¶
func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns sbt package-manager discovery metadata.
func (Detector) ResolveGraph ¶
func (d Detector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves an sbt dependency graph.
type NativeDetector ¶
NativeDetector resolves Scala sbt dependency graphs by running `sbt --no-colors --batch dependencyTree`. This produces a proper transitive tree with parent-child edges, unlike the manifest-only Detector.
func (NativeDetector) Applicable ¶
func (d NativeDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
Applicable reports whether sbt build files are present.
func (NativeDetector) Descriptor ¶
func (d NativeDetector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the sbt native detector.
func (NativeDetector) FallbackDetector ¶
func (d NativeDetector) FallbackDetector() sdk.Detector
FallbackDetector returns the configured fallback detector.
func (NativeDetector) PackageManagerSupport ¶
func (d NativeDetector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns sbt package-manager discovery metadata.
func (NativeDetector) Ready ¶
func (d NativeDetector) Ready(ctx context.Context, _ sdk.DetectionRequest) error
Ready reports whether the sbt binary and a usable Java runtime are available.
func (NativeDetector) ResolveGraph ¶
func (d NativeDetector) ResolveGraph(ctx context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves an sbt dependency graph via sbt dependencyTree.