buildsystem

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 7 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 GradlePlan

func GradlePlan() buildplan.Plan

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.

func MavenPlan

func MavenPlan() buildplan.Plan

MavenPlan returns the Plan 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.

Jump to

Keyboard shortcuts

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