gradle

package
v0.7.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(dir string) (string, error)

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, configuration string) ([]Dependency, map[Dependency][]Dependency, error)

func (*Gradle) DependenciesTask

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

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