gradle

package
v0.7.20 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(dir string) (string, error)

func NormalizeDependencies added in v0.7.17

func NormalizeDependencies(imports []Dependency, deps map[Dependency][]Dependency) graph.Deps

Types

type Dependency

type Dependency struct {
	Name      string
	Target    string
	Resolved  string
	IsProject bool
}

func ParseDependencies

func ParseDependencies(stdout string) ([]Dependency, map[Dependency][]Dependency, error)

func ReadDependencyTree

func ReadDependencyTree(lines []string, parser LineParser) ([]Dependency, map[Dependency][]Dependency, error)

type Gradle

type Gradle struct {
	Cmd    string
	Dir    string
	Online bool
}

func (*Gradle) Dependencies

func (g *Gradle) Dependencies(project string) (map[string]graph.Deps, error)

func (*Gradle) DependenciesTask

func (g *Gradle) DependenciesTask(taskArgs ...string) (map[string]graph.Deps, error)

func (*Gradle) MergeProjectsDependencies added in v0.7.18

func (g *Gradle) MergeProjectsDependencies(projects []string) (map[string]graph.Deps, error)

MergeProjectsDependecies creates a complete configuration to dep graph map by looping through a given list of projects and merging their dependencies by configuration.

func (*Gradle) Projects

func (g *Gradle) Projects() ([]string, error)

TODO: rename this -- this is really projects with :dependencies tasks

func (*Gradle) Run

func (g *Gradle) Run(taskArgs ...string) (string, error)

type LineParser

type LineParser func(line string) (level int, node Dependency, err error)

level is 1-indexed

Jump to

Keyboard shortcuts

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