Class StaticBuildSpec

java.lang.Object
org.gradle.api.experimental.buildinit.StaticBuildSpec
All Implemented Interfaces:
org.gradle.api.Describable, org.gradle.buildinit.specs.BuildInitSpec

public final class StaticBuildSpec extends Object implements org.gradle.buildinit.specs.BuildInitSpec
An BuildInitSpec that represents a build that can be generated from a static template using the StaticBuildGenerator.

The relative path to the root template directory from the /templates` directory in the root of the resources dir (and classpath in the library jar) should be the same as the type.

  • Constructor Details

    • StaticBuildSpec

      public StaticBuildSpec(String type, String displayName)
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface org.gradle.buildinit.specs.BuildInitSpec
      Specified by:
      getDisplayName in interface org.gradle.api.Describable
    • getParameters

      public List<org.gradle.buildinit.specs.BuildInitParameter<?>> getParameters()
      Specified by:
      getParameters in interface org.gradle.buildinit.specs.BuildInitSpec
    • getType

      public String getType()
      Specified by:
      getType in interface org.gradle.buildinit.specs.BuildInitSpec