Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(options *ExecuteOptions, utils Utils) error
Types ¶
type ExecuteOptions ¶
type ExecuteOptions struct { BuildGradlePath string `json:"path,omitempty"` Task string `json:"task,omitempty"` CreateBOM bool `json:"createBOM,omitempty"` ReturnStdout bool `json:"returnStdout,omitempty"` Publish bool `json:"publish,omitempty"` ArtifactVersion string `json:"artifactVersion,omitempty"` ArtifactGroupID string `json:"artifactGroupId,omitempty"` ArtifactID string `json:"artifactId,omitempty"` RepositoryURL string `json:"repositoryUrl,omitempty"` RepositoryPassword string `json:"repositoryPassword,omitempty"` RepositoryUsername string `json:"repositoryUsername,omitempty"` }
ExecuteOptions are used by Execute() to construct the Gradle command line.
type Utils ¶
type Utils interface { Stdout(out io.Writer) Stderr(err io.Writer) RunExecutable(e string, p ...string) error DownloadFile(url, filename string, header http.Header, cookies []*http.Cookie) error Glob(pattern string) (matches []string, err error) FileExists(filename string) (bool, error) Copy(src, dest string) (int64, error) MkdirAll(path string, perm os.FileMode) error FileWrite(path string, content []byte, perm os.FileMode) error FileRead(path string) ([]byte, error) FileRemove(path string) error }
Click to show internal directories.
Click to hide internal directories.