类 LayeredSpec

java.lang.Object
cn.taketoday.gradle.tasks.bundling.LayeredSpec

public abstract class LayeredSpec extends Object
Encapsulates the configuration for a layered archive.
从以下版本开始:
4.0
作者:
Madhura Bhave, Scott Frederick, Phillip Webb, Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • LayeredSpec

      @Inject public LayeredSpec(org.gradle.api.model.ObjectFactory objects)
  • 方法详细资料

    • getIncludeLayerTools

      @Input public abstract org.gradle.api.provider.Property<Boolean> getIncludeLayerTools()
      Returns whether the layer tools should be included as a dependency in the layered archive.
      返回:
      whether the layer tools should be included
    • getEnabled

      @Input public abstract org.gradle.api.provider.Property<Boolean> getEnabled()
      Returns whether the layers.idx should be included in the archive.
      返回:
      whether the layers.idx should be included
    • getApplication

      @Input public LayeredSpec.ApplicationSpec getApplication()
      Returns the LayeredSpec.ApplicationSpec that controls the layers to which application classes and resources belong.
      返回:
      the application spec
    • setApplication

      public void setApplication(LayeredSpec.ApplicationSpec spec)
      Sets the LayeredSpec.ApplicationSpec that controls the layers to which application classes are resources belong.
      参数:
      spec - the application spec
    • application

      public void application(org.gradle.api.Action<LayeredSpec.ApplicationSpec> action)
      Customizes the LayeredSpec.ApplicationSpec using the given action.
      参数:
      action - the action
    • getDependencies

      @Input public LayeredSpec.DependenciesSpec getDependencies()
      Returns the LayeredSpec.DependenciesSpec that controls the layers to which dependencies belong.
      返回:
      the dependencies spec
    • setDependencies

      public void setDependencies(LayeredSpec.DependenciesSpec spec)
      Sets the LayeredSpec.DependenciesSpec that controls the layers to which dependencies belong.
      参数:
      spec - the dependencies spec
    • dependencies

      public void dependencies(org.gradle.api.Action<LayeredSpec.DependenciesSpec> action)
      Customizes the LayeredSpec.DependenciesSpec using the given action.
      参数:
      action - the action
    • getLayerOrder

      @Input @Optional public abstract org.gradle.api.provider.ListProperty<String> getLayerOrder()
      Returns the order of the layers in the archive from least to most frequently changing.
      返回:
      the layer order
    • asLayers

      cn.taketoday.app.loader.tools.Layers asLayers()
      Return this configuration as a Layers instance. This method should only be called when the configuration is complete and will no longer be changed.
      返回:
      the layers
    • createLayers

      private cn.taketoday.app.loader.tools.Layers createLayers()