类 BuildInfoProperties

java.lang.Object
cn.taketoday.gradle.tasks.buildinfo.BuildInfoProperties
所有已实现的接口:
Serializable

public abstract class BuildInfoProperties extends Object implements Serializable
The properties that are written into the build-info.properties file.
从以下版本开始:
4.0
作者:
Andy Wilkinson, Harry Yang
另请参阅:
  • 字段详细资料

    • excludes

      private final org.gradle.api.provider.SetProperty<String> excludes
    • creationTime

      private final Supplier<String> creationTime
  • 构造器详细资料

    • BuildInfoProperties

      @Inject public BuildInfoProperties(org.gradle.api.Project project, org.gradle.api.provider.SetProperty<String> excludes)
  • 方法详细资料

    • getGroup

      @Internal public abstract org.gradle.api.provider.Property<String> getGroup()
      Returns the build.group property. Defaults to the Project's group.
      返回:
      the group property
    • getArtifact

      @Internal public abstract org.gradle.api.provider.Property<String> getArtifact()
      Returns the build.artifact property.
      返回:
      the artifact property
    • getVersion

      @Internal public abstract org.gradle.api.provider.Property<String> getVersion()
      Returns the build.version property. Defaults to the Project's version.
      返回:
      the version
    • getName

      @Internal public abstract org.gradle.api.provider.Property<String> getName()
      Returns the build.name property. Defaults to the Project's name.
      返回:
      the name
    • getTime

      @Internal public abstract org.gradle.api.provider.Property<String> getTime()
      Returns the build.time property.
      返回:
      the time
    • getAdditional

      @Internal public abstract org.gradle.api.provider.MapProperty<String,Object> getAdditional()
      Returns the additional properties that will be included. When written, the name of each additional property is prefixed with build..
      返回:
      the additional properties
    • getArtifactIfNotExcluded

      @Input @Optional String getArtifactIfNotExcluded()
    • getGroupIfNotExcluded

      @Input @Optional String getGroupIfNotExcluded()
    • getNameIfNotExcluded

      @Input @Optional String getNameIfNotExcluded()
    • getTimeIfNotExcluded

      @Input @Optional Instant getTimeIfNotExcluded()
    • getVersionIfNotExcluded

      @Input @Optional String getVersionIfNotExcluded()
    • getAdditionalIfNotExcluded

      @Input Map<String,String> getAdditionalIfNotExcluded()
    • getIfNotExcluded

      private <T> T getIfNotExcluded(org.gradle.api.provider.Property<T> property, String name)
    • getIfNotExcluded

      private <T> T getIfNotExcluded(org.gradle.api.provider.Property<T> property, String name, Supplier<T> defaultValue)
    • coerceToStringValues

      private Map<String,String> coerceToStringValues(Map<String,Object> input)
    • applyExclusions

      private Map<String,Object> applyExclusions(Map<String,Object> input)