gradle

package
v1.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoGradle          _e // gradle: No gradle found
	ErrEvalGradleVersion    // gradle: Eval gradle version failed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DepElement

type DepElement struct {
	GroupId    string       `json:"group_id"`
	ArtifactId string       `json:"artifact_id"`
	Version    string       `json:"version"`
	Children   []DepElement `json:"children,omitempty"`
}

func (DepElement) CompName

func (d DepElement) CompName() string

type EvalVersionError added in v1.9.8

type EvalVersionError struct {
	ExitCode int    `json:"exit_code"`
	Stderr   string `json:"stderr"`
	// contains filtered or unexported fields
}

func (*EvalVersionError) Error added in v1.9.8

func (e *EvalVersionError) Error() string

func (*EvalVersionError) Is added in v1.9.8

func (e *EvalVersionError) Is(target error) bool

func (*EvalVersionError) Unwrap added in v1.9.8

func (e *EvalVersionError) Unwrap() error

type GradleDependencyInfo

type GradleDependencyInfo struct {
	ProjectName  string       `json:"project_name"`
	Dependencies []DepElement `json:"dependencies,omitempty"`
}

func (*GradleDependencyInfo) BaseModule

func (g *GradleDependencyInfo) BaseModule(path string) model.Module

type GradleEnv added in v1.9.8

type GradleEnv struct {
	Version             GradleVersion       `json:"version"`
	Path                string              `json:"path,omitempty"`
	GradleWrapperStatus GradleWrapperStatus `json:"gradle_wrapper_status"`
	GradleWrapperError  error               `json:"gradle_wrapper_error,omitempty"`
}

func DetectGradleEnv added in v1.9.8

func DetectGradleEnv(ctx context.Context, dir string) (*GradleEnv, error)

func (*GradleEnv) ExecuteContext added in v1.9.8

func (g *GradleEnv) ExecuteContext(ctx context.Context, args ...string) *exec.Cmd

type GradleVersion added in v1.9.8

type GradleVersion struct {
	Version string            `json:"version"`
	Items   map[string]string `json:"items,omitempty"`
}

func (*GradleVersion) String added in v1.9.8

func (g *GradleVersion) String() string

type GradleWrapperStatus added in v1.9.8

type GradleWrapperStatus string
const (
	// GradleWrapperStatusNotDetected Gradle wrapper is not detected
	GradleWrapperStatusNotDetected GradleWrapperStatus = "gradle_wrapper_not_detected"
	// GradleWrapperStatusUsed Gradle wrapper is detected and used
	GradleWrapperStatusUsed GradleWrapperStatus = "gradle_wrapper_used"
	// GradleWrapperStatusError Gradle wrapper is detected but some errors happened
	GradleWrapperStatusError GradleWrapperStatus = "gradle_wrapper_error"
)

type Inspector

type Inspector struct{}

func (*Inspector) CheckDir

func (i *Inspector) CheckDir(dir string) bool

func (*Inspector) InspectProject

func (i *Inspector) InspectProject(ctx context.Context) error

func (*Inspector) String

func (i *Inspector) String() string

func (*Inspector) SupportFeature added in v1.9.2

func (i *Inspector) SupportFeature(feature model.InspectorFeature) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL