Documentation
¶
Index ¶
Constants ¶
View Source
const Dependency = "spring-boot"
Dependency indicates that an application is a Spring Boot application.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct {
// Classes indicates the Spring-Boot-Classes of a Spring Boot application.
Classes string `mapstructure:"classes" properties:"Spring-Boot-Classes,default=" toml:"classes"`
// Classpath is the classpath of a Spring Boot application.
ClassPath []string `mapstructure:"classpath" properties:",default=" toml:"classpath"`
// Lib indicates the Spring-Boot-Lib of a Spring Boot application.
Lib string `mapstructure:"lib" properties:"Spring-Boot-Lib,default=" toml:"lib"`
// StartClass indicates the Start-Class of a Spring Boot application.
StartClass string `mapstructure:"start-class" properties:"Start-Class,default=" toml:"start-class"`
// Version indicates the Spring-Boot-Version of a Spring Boot application.
Version string `mapstructure:"version" properties:"Spring-Boot-Version,default=" toml:"version"`
}
Metadata describes the application's metadata.
func NewMetadata ¶
func NewMetadata(application application.Application, logger logger.Logger) (Metadata, bool, error)
NewMetadata creates a new Metadata returning false if Spring-Boot-Version is not defined.
type SpringBoot ¶
type SpringBoot struct {
// Metadata is metadata about the Spring Boot application.
Metadata Metadata
// contains filtered or unexported fields
}
SpringBoot represents a Spring Boot JVM application.
func NewSpringBoot ¶
func NewSpringBoot(build build.Build) (SpringBoot, bool, error)
NewSpringBoot creates a new SpringBoot instance. OK is true if the build plan contains a "jvm-application" dependency and a "Spring-Boot-Version" manifest key.
func (SpringBoot) BuildPlan ¶
func (s SpringBoot) BuildPlan() (buildplan.BuildPlan, error)
BuildPlan returns the dependency information for this application.
func (SpringBoot) Contribute ¶
func (s SpringBoot) Contribute() error
Contribute makes the contribution to build, cache, and launch.
Click to show internal directories.
Click to hide internal directories.