gradle

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGradleWrapper

func FindGradleWrapper(projectDir string) (string, error)

func GetBuildDirectory added in v0.8.0

func GetBuildDirectory(projectDir string) (string, error)

func GetGradleCommand added in v0.8.0

func GetGradleCommand(projectDir string) (string, error)

GetGradleCommand returns the name of the gradle command. The gradle wrapper is preferred to use and gradle acts as a fallback command.

Types

type Builder

type Builder struct {
	*BuilderOptions
}

func NewBuilder

func NewBuilder(opts *BuilderOptions) (*Builder, error)

func (*Builder) Build

func (b *Builder) Build(targetClass string) (*build.Result, error)

func (*Builder) GradlePluginVersion added in v0.26.0

func (b *Builder) GradlePluginVersion() (string, error)

type BuilderOptions

type BuilderOptions struct {
	ProjectDir string
	Parallel   ParallelOptions
	Stdout     io.Writer
	Stderr     io.Writer
}

func (*BuilderOptions) Validate

func (opts *BuilderOptions) Validate() error

type ParallelOptions

type ParallelOptions struct {
	Enabled bool
	NumJobs uint
}

Jump to

Keyboard shortcuts

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