Documentation ¶
Index ¶
Constants ¶
const GradleDependency = "gradle"
GradleDependency is the key identifying the Gradle build system in the buildpack plan.
const MavenDependency = "maven"
MavenDependency is the key identifying the Maven build system in the buildpack plan.
Variables ¶
This section is empty.
Functions ¶
func GradlePlan ¶
GradlePlan returns the Plan 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.
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.