buildsystem

package
v1.0.0-M7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GradleDependency = "gradle"

GradleDependency is the key identifying the Gradle build system in the buildpack plan.

View Source
const MavenDependency = "maven"

MavenDependency is the key identifying the Maven build system in the buildpack plan.

Variables

This section is empty.

Functions

func GradleBuildPlanContribution

func GradleBuildPlanContribution(buildPlan buildplan.BuildPlan) buildplan.BuildPlan

GradleBuildPlanContribution returns the BuildPlan with requirements for Gradle.

func IsGradle

func IsGradle(application application.Application) bool

IsGradle returns whether this application is built using Gradle.

func IsMaven

func IsMaven(application application.Application) bool

IsMaven returns whether this application is built using Maven.

func MavenBuildPlanContribution

func MavenBuildPlanContribution(buildPlan buildplan.BuildPlan) buildplan.BuildPlan

MavenBuildPlanContribution returns the BuildPlan with requirements for Maven.

Types

type BuildSystem

type BuildSystem struct {
	// contains filtered or unexported fields
}

BuildSystem represents the build system distribution contributed by the buildpack.

func NewGradleBuildSystem

func NewGradleBuildSystem(build build.Build) (BuildSystem, bool, error)

NewGradleBuildSystem creates a new Gradle BuildSystem instance. OK is true if build plan contains "gradle" dependency, otherwise false.

func NewMavenBuildSystem

func NewMavenBuildSystem(build build.Build) (BuildSystem, bool, error)

NewMavenBuildSystem creates a new Maven BuildSystem instance. OK is true if build plan contains "maven" dependency, otherwise false.

func (BuildSystem) Contribute

func (b BuildSystem) Contribute() error

Contribute makes the contribution to the cache layer.

func (BuildSystem) Executable

func (b BuildSystem) Executable() string

Executable returns the path to the executable that should be used. Will be the wrapper if it exists, the contributed build system distribution otherwise.

func (BuildSystem) String

func (b BuildSystem) String() string

String makes BuildSystem satisfy the Stringer interface.

Jump to

Keyboard shortcuts

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