Class BuildInfoProperties

java.lang.Object
org.springframework.boot.gradle.tasks.buildinfo.BuildInfoProperties
All Implemented Interfaces:
Serializable

public class BuildInfoProperties extends Object implements Serializable
The properties that are written into the build-info.properties file.
Since:
2.0.0
Author:
Andy Wilkinson
See Also:
  • Method Details

    • getGroup

      @Input @Optional public String getGroup()
      Returns the value used for the build.group property. Defaults to the Project's group.
      Returns:
      the group
    • setGroup

      public void setGroup(String group)
      Sets the value used for the build.group property.
      Parameters:
      group - the group name
    • getArtifact

      @Input @Optional public String getArtifact()
      Returns the value used for the build.artifact property.
      Returns:
      the artifact
    • setArtifact

      public void setArtifact(String artifact)
      Sets the value used for the build.artifact property.
      Parameters:
      artifact - the artifact
    • getVersion

      @Input @Optional public String getVersion()
      Returns the value used for the build.version property. Defaults to the Project's version.
      Returns:
      the version
    • setVersion

      public void setVersion(String version)
      Sets the value used for the build.version property.
      Parameters:
      version - the version
    • getName

      @Input @Optional public String getName()
      Returns the value used for the build.name property. Defaults to the Project's display name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the value used for the build.name property.
      Parameters:
      name - the name
    • getTime

      @Input @Optional public Instant getTime()
      Returns the value used for the build.time property. Defaults to Instant.now() when the BuildInfoProperties instance was created.
      Returns:
      the time
    • setTime

      public void setTime(Instant time)
      Sets the value used for the build.time property.
      Parameters:
      time - the build time
    • getAdditional

      @Input @Optional public Map<String,Object> getAdditional()
      Returns the additional properties that will be included. When written, the name of each additional property is prefixed with build..
      Returns:
      the additional properties
    • setAdditional

      public void setAdditional(Map<String,Object> additionalProperties)
      Sets the additional properties that will be included. When written, the name of each additional property is prefixed with build..
      Parameters:
      additionalProperties - the additional properties