Schnittstelle VariantMetadata

Alle Superschnittstellen:
HasAttributes, HasConfigurableAttributes<VariantMetadata>

public interface VariantMetadata extends HasConfigurableAttributes<VariantMetadata>
Represents the metadata of one variant of a component, see ComponentMetadataDetails.withVariant(String, Action).
Seit:
4.4
  • Methodendetails

    • withDependencies

      void withDependencies(Action<? super DirectDependenciesMetadata> action)
      Register a rule that modifies the dependencies of this variant.
      Parameter:
      action - the action that performs the dependencies adjustment
    • withDependencyConstraints

      void withDependencyConstraints(Action<? super DependencyConstraintsMetadata> action)
      Register a rule that modifies the dependency constraints of this variant.
      Parameter:
      action - the action that performs the dependency constraints adjustment
      Seit:
      4.5
    • withCapabilities

      void withCapabilities(Action<? super MutableCapabilitiesMetadata> action)
      Register a rule that modifies the capabilities of this variant.
      Parameter:
      action - the action that performs the capabilities adjustment
      Seit:
      4.7
    • withFiles

      void withFiles(Action<? super MutableVariantFilesMetadata> action)
      Register a rule that modifies the artifacts of this variant.
      Parameter:
      action - the action that performs the files adjustment
      Seit:
      6.0