Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildArgumentsProvider ¶
type BuildArgumentsProvider struct {
Arguments []string
}
func NewBuildArgumentsProvider ¶
func NewBuildArgumentsProvider(defaultArguments ...string) (BuildArgumentsProvider, error)
type BuiltArtifactProvider ¶
type BuiltArtifactProvider struct {
// contains filtered or unexported fields
}
BuiltArtifactProvider returns the artifact built as part of running a build system.
func NewBuiltArtifactProvider ¶
func NewBuiltArtifactProvider(defaultTarget ...string) BuiltArtifactProvider
NewBuiltArtifactProvider creates a new instance using the default target if not otherwise configured.
func (BuiltArtifactProvider) Get ¶
func (b BuiltArtifactProvider) Get(application application.Application) (string, error)
Get returns the built artifact if exactly one exists. If less than or more than one exists, returns an error.
type CompiledApplication ¶
type CompiledApplication struct { // JavaVersion is the version of Java used to compile the application. JavaVersion string `toml:"java-version"` }
CompiledApplication represents metadata about a compiled application.
func NewCompiledApplication ¶
func NewCompiledApplication(application application.Application, runner runner.Runner) (CompiledApplication, error)
func (CompiledApplication) Identity ¶
func (c CompiledApplication) Identity() (string, string)
Identity makes CompiledApplication satisfy the Identifiable interface.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner represents the behavior of running the build system command to build an application.
func NewGradleRunner ¶
func NewGradleRunner(build build.Build, buildSystem buildsystem.BuildSystem) (Runner, error)
NewRunner creates a new Gradle Runner instance.
func NewMavenRunner ¶
func NewMavenRunner(build build.Build, buildSystem buildsystem.BuildSystem) (Runner, error)
NewRunner creates a new Maven Runner instance.
func NewRunner ¶
func NewRunner(build build.Build, bin string, buildArgumentsProvider BuildArgumentsProvider, builtArtifactProvider BuiltArtifactProvider) Runner
func (Runner) Contribute ¶
Contributes builds the application from source code, removes the source code, and expands the built artifact to $APPLICATION_ROOT.